From 09775804429ccd7486419b4c539581d6f70e193d Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 19 Aug 2021 17:28:13 -0400 Subject: char/enemy: Try to fix movement lag --- (limited to 'src/game.c') diff --git a/src/game.c b/src/game.c index d582323..6908626 100644 --- a/src/game.c +++ b/src/game.c @@ -251,6 +251,9 @@ mf_game(long seed, int size, int fow, int reveal, int enemies, mf_char_update(chars[i]); } for (i = 0; i < enemies; ++i) { + mf_enemy_postupdate(chars[i]); + } + for (i = 0; i < enemies; ++i) { for (j = i + 1; j < enemies; ++j) { mf_char_collision(chars[i], chars[j], SDL_TRUE); -- cgit v0.9.1