More work adding back missing functions

This commit is contained in:
Davide Passoni
2024-11-07 10:05:27 +01:00
parent 6d551c51eb
commit bf7115288b
14 changed files with 792 additions and 493 deletions

View File

@@ -599,8 +599,7 @@ export abstract class Unit extends CustomMarker {
const blueprint = getApp().getUnitsManager().getDatabase().getByName(this.#name);
this.#blueprint = blueprint ?? null;
/* Refresh the marker */
this.remove();
this.addTo(getApp().getMap());
this.#redrawMarker();
}
/* Update the blueprint to use when the unit is grouped */