Record some bugs.
This commit is contained in:
parent
f9bf8f06ea
commit
77945be4d7
2 changed files with 4 additions and 0 deletions
3
gui.cpp
3
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!";
|
||||
|
|
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue