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,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) {