summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-08-09 15:50:46 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-08-09 15:50:46 (EDT)
commitc349527f46ec00cd88be4d0383648e4c9aef5efd (patch)
tree54dc6549d20288b35221e0df7a8e89206c4d37f1 /src
parentf94d038f789c1270c727b04952d14eda5c47d585 (diff)
downloadmazefight-c349527f46ec00cd88be4d0383648e4c9aef5efd.zip
mazefight-c349527f46ec00cd88be4d0383648e4c9aef5efd.tar.gz
mazefight-c349527f46ec00cd88be4d0383648e4c9aef5efd.tar.bz2
char/enemy: Don't turn in ALL the directions
Diffstat (limited to 'src')
-rw-r--r--src/char/enemy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/char/enemy.c b/src/char/enemy.c
index 7d913c4..06ced77 100644
--- a/src/char/enemy.c
+++ b/src/char/enemy.c
@@ -81,6 +81,7 @@ _mf_enemy_step(struct mf_char *c)
if (!mf_maze_is_wall(c->maze, c->cur_x, c->cur_y, dx, dy)) {
/* Move */
c->new_dir = dirs[i];
+ return 0;
}
}