Browse Source

save only adventure map zoom

Laserlicht 8 months ago
parent
commit
a6a6b8c69c
1 changed files with 5 additions and 2 deletions
  1. 5 2
      client/mapView/MapViewController.cpp

+ 5 - 2
client/mapView/MapViewController.cpp

@@ -138,8 +138,11 @@ void MapViewController::modifyTileSize(int stepsChange, bool useDeadZone)
 
 		setTileSize(actualZoom, false);
 
-		Settings tileZoom = persistentStorage.write["tileZoom"];
-		tileZoom->Integer() = actualZoom.x;
+		if (adventureContext)
+		{
+			Settings tileZoom = persistentStorage.write["tileZoom"];
+			tileZoom->Integer() = actualZoom.x;
+		}
 	}
 }