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