summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/game.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/game.c b/src/game.c
index 0c94202..183e0ad 100644
--- a/src/game.c
+++ b/src/game.c
@@ -249,8 +249,12 @@ mf_game(long seed, int size, int fow, int reveal, int enemies,
}
for (i = 1; i < 1 + enemies; ++i) {
for (j = i + 1; j < 1 + enemies; ++j) {
- mf_char_collision(chars[i], chars[j],
- SDL_TRUE);
+ if (mf_char_collision(chars[i],
+ chars[j],
+ SDL_TRUE)
+ == SDL_TRUE) {
+ fr = 1;
+ }
}
}
mf_char_get_vector(chars[0], &game.player_cx,