Tiny optimization
authorunc0rr
Sun, 29 May 2011 20:28:27 +0400
changeset 5221 632c42555a01
parent 5220 76a2246f18f0
child 5222 0922b9d816af
Tiny optimization
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Sat May 28 23:40:42 2011 +0200
+++ b/hedgewars/GSHandlers.inc	Sun May 29 20:28:27 2011 +0400
@@ -1006,8 +1006,8 @@
 begin
     PlaySound(sndGun);
     // add 2 initial steps to avoid problem with ammoshove related to calculation of radius + 1 radius as gear widths
-    Gear^.X := Gear^.X + _2*Gear^.dX;  
-    Gear^.Y := Gear^.Y + _2*Gear^.dY;
+    Gear^.X := Gear^.X + Gear^.dX * 2;
+    Gear^.Y := Gear^.Y + Gear^.dY * 2;
     Gear^.doStep := @doStepBulletWork
 end;