diff options
-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; } } |