浏览代码

save only adventure map zoom

Laserlicht 8 月之前
父节点
当前提交
a6a6b8c69c
共有 1 个文件被更改,包括 5 次插入2 次删除
  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;
+		}
 	}
 }