Increase rarity of near flakes (don't want them intruding in game much). Also fix stereo. Near flakes were being drawn far.
authornemo
Sat, 05 Nov 2011 12:10:49 -0400
changeset 6289 95ffd59d0f4a
parent 6288 fcc50b96d20a
child 6290 c6245ed6cbc0
Increase rarity of near flakes (don't want them intruding in game much). Also fix stereo. Near flakes were being drawn far.
hedgewars/uVisualGears.pas
hedgewars/uWorld.pas
--- a/hedgewars/uVisualGears.pas	Sat Nov 05 11:41:56 2011 -0400
+++ b/hedgewars/uVisualGears.pas	Sat Nov 05 12:10:49 2011 -0400
@@ -338,9 +338,9 @@
 
 case Gear^.Kind of
     vgtFlake: if cFlattenFlakes then gear^.Layer:= 0
-              else if random(2) = 0 then gear^.Layer:= 0   // 50%
-              else if random(2) = 0 then gear^.Layer:= 1  // 25%
-              else gear^.Layer:= random(2)+2;  // 12.5% each
+              else if random(3) <> 0 then gear^.Layer:= 0   // 66%
+              else if random(3) <> 0 then gear^.Layer:= 1  // 22%
+              else gear^.Layer:= random(2)+2;  // 6% each
 
     // 0: this layer is very distant in the background when stereo
     vgtTeamHealthSorter,
--- a/hedgewars/uWorld.pas	Sat Nov 05 11:41:56 2011 -0400
+++ b/hedgewars/uWorld.pas	Sat Nov 05 12:10:49 2011 -0400
@@ -77,7 +77,7 @@
       cStereo_Water_distant = 0.0125;
       cStereo_Land          = 0.0075;
       cStereo_Water_near    = 0.0025;
-      cStereo_Outside       = 0.0400;
+      cStereo_Outside       = -0.0400;
 
 procedure InitWorld;
 var i, t: LongInt;