bit friendlier if the uVariables values get changed
authornemo
Tue, 16 Jun 2015 10:08:07 -0400
changeset 10994 cd7f918eed30
parent 10993 fd172f166de4
child 10995 7faaef306837
bit friendlier if the uVariables values get changed
hedgewars/uLandUtils.pas
--- a/hedgewars/uLandUtils.pas	Fri Jun 12 17:28:20 2015 -0400
+++ b/hedgewars/uLandUtils.pas	Tue Jun 16 10:08:07 2015 -0400
@@ -27,7 +27,7 @@
     SetLength(Land, LAND_HEIGHT, LAND_WIDTH);
     SetLength(LandDirty, (LAND_HEIGHT div 32), (LAND_WIDTH div 32));
     // 0.5 is already approaching on unplayable
-    if (width div 4096 >= 2) or (height div 2048 >= 2) then cMaxZoomLevel:= 0.5;
+    if (width div 4096 >= 2) or (height div 2048 >= 2) then cMaxZoomLevel:= cMaxZoomLevel/2;
     cMinMaxZoomLevelDelta:= cMaxZoomLevel - cMinZoomLevel
     end;
 end;