fixxed trigger-event start

This commit is contained in:
musilto9 2020-03-24 12:40:51 +01:00
parent 87cd4f88c0
commit b9f7e9f3c3

View File

@ -123,9 +123,13 @@ public class Person extends Cell {
directionMove = 0;
if (map.isActiveTriggerCell(x,y) && !isInEvent) {
isInEvent = true;
WindowOfFreeMove.setNextMove(WindowOfFreeMove.KEY_EVENT);
map.findTriggerByXY(x,y).startEvent();
set(x, y);
WindowOfFreeMove.setCanPersonMove(false);
if (!isMoving) {
isInEvent = true;
WindowOfFreeMove.setNextMove(WindowOfFreeMove.KEY_EVENT);
map.findTriggerByXY(x,y).startEvent();
}
}
}
}