set windspeed to 0 at the very beginning of the game. (fixes DisableWind game modifier)
authorsheepluva
Wed, 29 Dec 2010 15:57:13 +0100
changeset 4776 ab956d4647a4
parent 4774 d81c6e14416d
child 4778 1565a553d200
set windspeed to 0 at the very beginning of the game. (fixes DisableWind game modifier)
hedgewars/uConsts.pas
hedgewars/uVariables.pas
--- a/hedgewars/uConsts.pas	Wed Dec 29 14:59:56 2010 +0100
+++ b/hedgewars/uConsts.pas	Wed Dec 29 15:57:13 2010 +0100
@@ -194,7 +194,7 @@
     gfInfAttack          = $00100000;
     gfResetWeps          = $00200000;
     gfPerHogAmmo         = $00400000;
-    gfDisableWind        = $00800000;           // only lua for now
+    gfDisableWind        = $00800000;
     gfMoreWind           = $01000000;
     // NOTE: When adding new game flags, ask yourself
     // if a "game start notice" would be useful. If so,
--- a/hedgewars/uVariables.pas	Wed Dec 29 14:59:56 2010 +0100
+++ b/hedgewars/uVariables.pas	Wed Dec 29 15:57:13 2010 +0100
@@ -2190,8 +2190,8 @@
     cDrownSpeed.QWordValue  := 257698038;       // 0.06
     cDrownSpeedf            := 0.06;
     cMaxWindSpeed.QWordValue:= 1073742;     // 0.00025
-    cWindSpeed.QWordValue   := 429496;      // 0.0001
-    cWindSpeedf             := 0.0001;
+    cWindSpeed.QWordValue   := 0;      // 0.0
+    cWindSpeedf             := 0.0;
     cGravity                := cMaxWindSpeed * 2;
     cGravityf               := 0.00025 * 2;
     cDamageModifier         := _1;