This fixes the bug where you get 'stuck' while moving and passing an enemy. Need to sort out why this fixes it though. Closes #30.

This commit is contained in:
Zed A. Shaw 2025-09-04 11:48:12 -04:00
parent ba5fc73127
commit 9c5bad5959
3 changed files with 6 additions and 9 deletions

View file

@ -67,7 +67,7 @@ namespace gui {
void FSM::MOVING(Event ) {
// this should be an optional that returns a point
if(auto move_to = $main_ui.play_move()) {
System::plan_motion(*move_to);
System::move_player(*move_to);
run_systems();
$main_ui.dirty();
state(State::IDLE);