summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-08-18 16:40:08 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-08-18 16:40:08 (EDT)
commit1b5817ea5fe469f9001e09acd8e9468c87aea2a0 (patch)
tree27249a38387828b922dad3b88a8ee55f1949ec83
parent23ee8d5c17b32e18f19d392b64bc96270731ae0e (diff)
downloadmazefight-1b5817ea5fe469f9001e09acd8e9468c87aea2a0.zip
mazefight-1b5817ea5fe469f9001e09acd8e9468c87aea2a0.tar.gz
mazefight-1b5817ea5fe469f9001e09acd8e9468c87aea2a0.tar.bz2
Revert "game: Slow down on enemy collision"
This reverts commit 74904bd7f54e63c1068a8165a71940866205dfbe.
-rw-r--r--src/game.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/game.c b/src/game.c
index 183e0ad..0c94202 100644
--- a/src/game.c
+++ b/src/game.c
@@ -249,12 +249,8 @@ 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) {
- if (mf_char_collision(chars[i],
- chars[j],
- SDL_TRUE)
- == SDL_TRUE) {
- fr = 1;
- }
+ mf_char_collision(chars[i], chars[j],
+ SDL_TRUE);
}
}
mf_char_get_vector(chars[0], &game.player_cx,