fixxed trigger-event start
This commit is contained in:
parent
87cd4f88c0
commit
b9f7e9f3c3
@ -123,9 +123,13 @@ public class Person extends Cell {
|
|||||||
directionMove = 0;
|
directionMove = 0;
|
||||||
|
|
||||||
if (map.isActiveTriggerCell(x,y) && !isInEvent) {
|
if (map.isActiveTriggerCell(x,y) && !isInEvent) {
|
||||||
isInEvent = true;
|
set(x, y);
|
||||||
WindowOfFreeMove.setNextMove(WindowOfFreeMove.KEY_EVENT);
|
WindowOfFreeMove.setCanPersonMove(false);
|
||||||
map.findTriggerByXY(x,y).startEvent();
|
if (!isMoving) {
|
||||||
|
isInEvent = true;
|
||||||
|
WindowOfFreeMove.setNextMove(WindowOfFreeMove.KEY_EVENT);
|
||||||
|
map.findTriggerByXY(x,y).startEvent();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user