update unit position in UnitGrid when units move

This commit is contained in:
Evan
2025-04-06 15:13:25 -07:00
parent 15c2cc192f
commit add27fd5d9
2 changed files with 7 additions and 5 deletions
+2
View File
@@ -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 {