v1.2.0: fixed movement keys triggering on targeting cell selectors

This commit is contained in:
Evan Debenham 2022-02-19 20:46:39 -05:00 committed by Evan Debenham
parent 8cf519d3e1
commit c0219c95e0

View File

@ -373,7 +373,9 @@ public class CellSelector extends ScrollArea {
if (cell != Dungeon.hero.pos && cell != lastCellMoved){
lastCellMoved = cell;
select(cell, PointerEvent.LEFT);
if (Dungeon.hero.handle( cell )) {
Dungeon.hero.next();
}
return true;
} else {