diff options
author | P. 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) |
commit | c349527f46ec00cd88be4d0383648e4c9aef5efd (patch) | |
tree | 54dc6549d20288b35221e0df7a8e89206c4d37f1 /src/char | |
parent | f94d038f789c1270c727b04952d14eda5c47d585 (diff) | |
download | mazefight-c349527f46ec00cd88be4d0383648e4c9aef5efd.zip mazefight-c349527f46ec00cd88be4d0383648e4c9aef5efd.tar.gz mazefight-c349527f46ec00cd88be4d0383648e4c9aef5efd.tar.bz2 |
char/enemy: Don't turn in ALL the directions
Diffstat (limited to 'src/char')
-rw-r--r-- | src/char/enemy.c | 1 |
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; } } |