Fix last properties changed after trigger change position

This commit is contained in:
Gregoire Parant 2021-02-18 11:32:37 +01:00
parent 80449e9a96
commit 772c3174be

View File

@ -29,6 +29,7 @@ export class GameMap {
const newProps = this.getProperties(key);
const oldProps = this.lastProperties;
this.lastProperties = newProps;
// Let's compare the 2 maps:
// First new properties vs oldProperties
@ -45,8 +46,6 @@ export class GameMap {
this.trigger(oldPropName, oldPropValue, undefined, newProps);
}
}
this.lastProperties = newProps;
}
public getCurrentProperties(): Map<string, string|boolean|number> {