2
0
Эх сурвалжийг харах

save only adventure map zoom

Laserlicht 8 сар өмнө
parent
commit
a6a6b8c69c

+ 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;
+		}
 	}
 }