v1.2.0: fixed movement keys triggering on targeting cell selectors
This commit is contained in:
committed by
Evan Debenham
parent
8cf519d3e1
commit
c0219c95e0
+3
-1
@@ -373,7 +373,9 @@ public class CellSelector extends ScrollArea {
|
|||||||
|
|
||||||
if (cell != Dungeon.hero.pos && cell != lastCellMoved){
|
if (cell != Dungeon.hero.pos && cell != lastCellMoved){
|
||||||
lastCellMoved = cell;
|
lastCellMoved = cell;
|
||||||
select(cell, PointerEvent.LEFT);
|
if (Dungeon.hero.handle( cell )) {
|
||||||
|
Dungeon.hero.next();
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user