mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-05 13:22:02 +00:00
update unit position in UnitGrid when units move
This commit is contained in:
@@ -86,6 +86,8 @@ export class UnitImpl implements Unit {
|
||||
}
|
||||
this._lastTile = this._tile;
|
||||
this._tile = tile;
|
||||
this.mg.removeUnit(this);
|
||||
this.mg.addUnit(this);
|
||||
this.mg.addUpdate(this.toUpdate());
|
||||
}
|
||||
setTroops(troops: number): void {
|
||||
|
||||
Reference in New Issue
Block a user