summaryrefslogtreecommitdiffstats
path: root/src/game.c
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-08-19 15:03:23 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-08-19 15:14:26 (EDT)
commit9ab79e75948025f640d2042f5c01daea8b6d3010 (patch)
tree1a8794409cf4c342ea813f3660ec2349809a0c04 /src/game.c
parent1cf6751f42be611dbd0545d91a645c23bb203ee8 (diff)
downloadmazefight-9ab79e75948025f640d2042f5c01daea8b6d3010.zip
mazefight-9ab79e75948025f640d2042f5c01daea8b6d3010.tar.gz
mazefight-9ab79e75948025f640d2042f5c01daea8b6d3010.tar.bz2
char/enemy: Store allies array
And fix variable name.
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game.c b/src/game.c
index 702397f..d582323 100644
--- a/src/game.c
+++ b/src/game.c
@@ -185,7 +185,8 @@ mf_game(long seed, int size, int fow, int reveal, int enemies,
goto err;
}
for (i = 0; i < enemies; ++i) {
- chars[i] = mf_enemy_new(maze, MF_WINDOW_H / size, size);
+ chars[i] = mf_enemy_new(maze, MF_WINDOW_H / size, size,
+ enemies, chars);
if (chars[i] == NULL) {
goto err;
}