oops
authornemo
Sun, 23 Oct 2011 14:44:19 -0400
changeset 6192 7c34bf4fbb54
parent 6191 190a8e5d9956
child 6193 4f234aa06182
oops
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Sun Oct 23 11:37:52 2011 +0400
+++ b/hedgewars/uGears.pas	Sun Oct 23 14:44:19 2011 -0400
@@ -300,10 +300,10 @@
                         dx.isNegative:= GetRandom(2) = 0;
                         dx.QWordValue:= GetRandom(100000000);
                         dy.isNegative:= false;
-                        dy.QWordValue:= GetRandom(70000000)
+                        dy.QWordValue:= GetRandom(70000000);
+                        if GetRandom(2) = 0 then dx := -dx
                         end;
                     State:= State or gstInvisible;
-                    if GetRandom(2) = 0 then dx := -dx;
                     Health:= random(vobFrameTicks);
                     Timer:= random(vobFramesCount);
                     Angle:= (random(2) * 2 - 1) * (1 + random(10000)) * vobVelocity