Keep blowtorch direction (doesn't actually fix the bug with hedgehog turning opposite direction)
authorunc0rr
Thu, 01 Sep 2011 17:45:21 +0400
changeset 5722 3b7f2bfc8632
parent 5721 04f6ac4b2c0e
child 5723 87eec4c9a889
Keep blowtorch direction (doesn't actually fix the bug with hedgehog turning opposite direction)
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Thu Sep 01 00:00:23 2011 -0400
+++ b/hedgewars/GSHandlers.inc	Thu Sep 01 17:45:21 2011 +0400
@@ -1227,7 +1227,7 @@
 
     if abs(LongInt(HHGear^.Angle) - BTPrevAngle) > 7  then
         begin
-        Gear^.dX := SignAs(AngleSin(HHGear^.Angle) * _0_5, HHGear^.dX);
+        Gear^.dX := SignAs(AngleSin(HHGear^.Angle) * _0_5, Gear^.dX);
         Gear^.dY := AngleCos(HHGear^.Angle) * ( - _0_5);
         BTPrevAngle := HHGear^.Angle;
         b := true