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; 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();
}
} }
} }
} }