Merge pull request #120 from Pax1601/92-land-here-command-not-working

Added call to land here button
This commit is contained in:
Pax1601
2023-03-22 17:17:56 +01:00
committed by GitHub
3 changed files with 10 additions and 4 deletions

View File

@@ -11,6 +11,12 @@ export class AirbaseContextMenu extends ContextMenu {
document.addEventListener("contextMenuSpawnAirbase", (e: any) => {
this.showSpawnMenu();
})
document.addEventListener("contextMenuLandAirbase", (e: any) => {
if (this.#airbase)
getUnitsManager().selectedUnitsLandAt(this.#airbase.getLatLng());
this.hide();
})
}
setAirbase(airbase: Airbase)