summaryrefslogtreecommitdiffstats
path: root/src/game.c
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-09-25 14:12:30 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-09-25 14:12:30 (EDT)
commit15f3d1c8385ac7cc2ed3c04bb1e1fb919ba169d1 (patch)
tree3d50b762a567a846bd3a0a3acff38e39dd699cbf /src/game.c
parente131c8fe8de5d8d956a10623bb9351df0c526845 (diff)
downloadmazefight-15f3d1c8385ac7cc2ed3c04bb1e1fb919ba169d1.zip
mazefight-15f3d1c8385ac7cc2ed3c04bb1e1fb919ba169d1.tar.gz
mazefight-15f3d1c8385ac7cc2ed3c04bb1e1fb919ba169d1.tar.bz2
char: Remove old collision functions
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/game.c b/src/game.c
index 93ea2db..faf2beb 100644
--- a/src/game.c
+++ b/src/game.c
@@ -154,7 +154,6 @@ mf_game(long seed, int size, int fow, int reveal, int enemies,
int fr;
int won;
Uint32 beg;
- int j;
int secs;
Uint32 end;
Uint32 delay;
@@ -249,12 +248,6 @@ mf_game(long seed, int size, int fow, int reveal, int enemies,
for (i = 0; i < enemies; ++i) {
mf_char_update(chars[i]);
}
- for (i = 0; i < enemies; ++i) {
- for (j = i + 1; j < enemies; ++j) {
- mf_char_collision(chars[i], chars[j],
- SDL_TRUE);
- }
- }
mf_char_get_vector(player, &game.player_cx,
&game.player_cy, &game.player_travel,
&game.player_dx, &game.player_dy);