From 77945be4d79ea0ef439a2835cec5896ae3fbd408 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Fri, 4 Oct 2024 18:32:04 -0400 Subject: [PATCH] Record some bugs. --- gui.cpp | 3 +++ status.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/gui.cpp b/gui.cpp index 75040ca..1ea9c11 100644 --- a/gui.cpp +++ b/gui.cpp @@ -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!"; diff --git a/status.txt b/status.txt index 01ad54e..7b2a39b 100644 --- a/status.txt +++ b/status.txt @@ -3,4 +3,5 @@ TODO: * Figure out how to render color fonts from FTUI. * Dynamically determine the font vs. screensize to get an exact FTXUI screen size. * Write a test that generates a ton of maps then confirms there's a path from one room to every other room? +* If the player is trapped in a room the enemy just travles through walls. * Lua integration?