# HG changeset patch
# User unc0rr
# Date 1349986228 -14400
# Node ID 0326e1bf674dcdcaef9011681d907936e3cc48b6
# Parent  75e1d0c0ba7252975a580b9a74573feeac7d11ac
Better use random number here

diff -r 75e1d0c0ba72 -r 0326e1bf674d 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);