Merge branch 'main' into 499-spawn-menu-reorganisation

This commit is contained in:
Pax1601
2023-11-06 11:12:46 +01:00
committed by GitHub
58 changed files with 13571 additions and 12498 deletions

View File

@@ -105,6 +105,9 @@ export class MapContextMenu extends ContextMenu {
* @param latlng Leaflet latlng object of the mouse click
*/
show(x: number, y: number, latlng: LatLng) {
if (!getApp().getCurrentContext().getUseSpawnMenu())
return false;
super.show(x, y, latlng);
this.#aircraftSpawnMenu.setLatLng(latlng);