summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-08-08 20:14:04 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-08-08 20:14:04 (EDT)
commit21781ba0436d134409a965cceeda05dc00acef85 (patch)
treedd11e8c9bfb05877456ef54ad984fcb051f58759
parentc80d9c0f34c0f165e77d14b5ef84b6b38dac1abd (diff)
downloadmazefight-21781ba0436d134409a965cceeda05dc00acef85.zip
mazefight-21781ba0436d134409a965cceeda05dc00acef85.tar.gz
mazefight-21781ba0436d134409a965cceeda05dc00acef85.tar.bz2
char: Notify update method if completed turn
-rw-r--r--src/char/char.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 206dfdf..97c3cc4 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -113,6 +113,8 @@ mf_char_update(struct mf_char *c)
c->new_x = c->cur_x + dx;
c->new_y = c->cur_y + dy;
c->travel += c->speed;
+ } else {
+ stepped = SDL_TRUE;
}
}