issues with zone triggering fixed

This commit is contained in:
Hanusiak Piotr 2021-12-02 18:11:22 +01:00
parent 3e3a04d50e
commit e792b75ad3

View file

@ -116,6 +116,7 @@ export class GameMap {
public setPosition(x: number, y: number) {
this.oldPosition = this.position;
this.position = { x, y };
this.triggerZonesChange();
this.oldKey = this.key;
@ -131,7 +132,6 @@ export class GameMap {
this.triggerAllProperties();
this.triggerLayersChange();
this.triggerZonesChange();
}
private triggerAllProperties(): void {