Better use random number here
authorunc0rr
Fri, 12 Oct 2012 00:10:28 +0400
changeset 7745 0326e1bf674d
parent 7744 75e1d0c0ba72
child 7746 5d8788a7d9ee
Better use random number here
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Thu Oct 11 21:17:56 2012 +0400
+++ b/hedgewars/GSHandlers.inc	Fri Oct 12 00:10:28 2012 +0400
@@ -4176,7 +4176,7 @@
         sdY := -sdY;
 
     // initial angle depends on current GameTicks
-    t := GameTicks mod 4096;
+    t := getRandom(4096);
 
 
     // used for a work-around detection of area that is within land array, but outside borders
@@ -4285,7 +4285,7 @@
 end;
 
 procedure doStepSineGunShot(Gear: PGear);
-var 
+var
     HHGear: PGear;
 begin
     PlaySound(sndSineGun);