diff options
author | P. 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) |
commit | 21781ba0436d134409a965cceeda05dc00acef85 (patch) | |
tree | dd11e8c9bfb05877456ef54ad984fcb051f58759 | |
parent | c80d9c0f34c0f165e77d14b5ef84b6b38dac1abd (diff) | |
download | mazefight-21781ba0436d134409a965cceeda05dc00acef85.zip mazefight-21781ba0436d134409a965cceeda05dc00acef85.tar.gz mazefight-21781ba0436d134409a965cceeda05dc00acef85.tar.bz2 |
char: Notify update method if completed turn
-rw-r--r-- | src/char/char.c | 2 |
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; } } |