summaryrefslogtreecommitdiffstats
path: root/src/game.c
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-08-19 17:28:13 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-08-19 17:28:13 (EDT)
commit09775804429ccd7486419b4c539581d6f70e193d (patch)
tree50ed80a2533cae707c9f4752dd957f69e1150065 /src/game.c
parente236632ceea7a7cbee7c4139b0bf86710770077b (diff)
downloadmazefight-09775804429ccd7486419b4c539581d6f70e193d.zip
mazefight-09775804429ccd7486419b4c539581d6f70e193d.tar.gz
mazefight-09775804429ccd7486419b4c539581d6f70e193d.tar.bz2
char/enemy: Try to fix movement lag
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c3
1 files changed, 3 insertions, 0 deletions
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);