Record some bugs.

This commit is contained in:
Zed A. Shaw 2024-10-04 18:32:04 -04:00
parent f9bf8f06ea
commit 77945be4d7
2 changed files with 4 additions and 0 deletions

View file

@ -138,6 +138,9 @@ void GUI::handle_events() {
}
// move $enemy here
// BUG: when the enemy has no path it goes through walls, which means
// this neighbors function is not working right. Probably updating
// enemy.location in an out parameter isn't the best idea.
bool found = $game_map.neighbors($enemy.location, true);
if(!found) {
$status_text = "ENEMY STUCK!";