Fix desync bomb
authorunc0rr
Sat, 17 Nov 2018 19:19:50 +0100
changeset 14219 de21f6eb2366
parent 14218 925e2c9877a8
child 14220 d5d941737a65
Fix desync bomb
hedgewars/uScript.pas
hedgewars/uTeams.pas
--- a/hedgewars/uScript.pas	Fri Nov 16 21:23:23 2018 +0100
+++ b/hedgewars/uScript.pas	Sat Nov 17 19:19:50 2018 +0100
@@ -2750,7 +2750,7 @@
             cWindSpeedf := -cWindSpeedf;
         vg:= AddVisualGear(0, 0, vgtSmoothWindBar);
         if vg <> nil then vg^.dAngle:= hwFloat2Float(cWindSpeed);
-            AddFileLog('Wind = '+FloatToStr(cWindSpeed));
+            AddFileLog('Script set wind = '+FloatToStr(cWindSpeed));
         end;
     lc_setwind:= 0
 end;
--- a/hedgewars/uTeams.pas	Fri Nov 16 21:23:23 2018 +0100
+++ b/hedgewars/uTeams.pas	Sat Nov 17 19:19:50 2018 +0100
@@ -455,7 +455,6 @@
         end
     else
         begin
-        GetRandom(2); // needed to avoid extdriven desync
         AddVoice(sndYesSir, CurrentTeam^.voicepack);
         end;
     if cHedgehogTurnTime < 1000000 then