fix: sessionData not being saved after mission reload

This commit is contained in:
Pax1601
2025-03-25 09:37:55 +01:00
parent 6af6545f09
commit b20134f8f1
3 changed files with 11 additions and 8 deletions

View File

@@ -1159,7 +1159,7 @@ export class Map extends L.Map {
}
#onLeftMouseLongClick(e: any) {
if (this.#isDragging || this.#isSelecting) return;
if (this.#isDragging || this.#isSelecting || this.#isZooming) return;
console.log(`Left long click at ${e.latlng}`);
if (getApp().getState() === OlympusState.UNIT_CONTROL) {

View File

@@ -17,7 +17,6 @@ import {
} from "../constants/constants";
import {
AirbasesData,
AlarmState,
BullseyesData,
CommandModeOptions,
GeneralSettings,
@@ -816,6 +815,7 @@ export class ServerManager {
}
checkSessionHash(newSessionHash: string) {
console.log(`Checking session hash: ${newSessionHash}`);
if (this.#sessionHash != null) {
if (newSessionHash !== this.#sessionHash) location.reload();
} else {