Ok. I think *this* should flip it correctly...
authornemo
Sun, 20 May 2012 19:42:55 -0400
changeset 7101 d8fb38141950
parent 7100 8a2b23efed11
child 7102 96f655d06e9e
Ok. I think *this* should flip it correctly...
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Sun May 20 21:09:13 2012 +0200
+++ b/hedgewars/GSHandlers.inc	Sun May 20 19:42:55 2012 -0400
@@ -4285,6 +4285,8 @@
             resetdy:=hwAbs(iterator^.dX*4);
             resetdy:= resetdy + hwPow(resetdy,3)/_6 + _3 * hwPow(resetdy,5) / _40 + _5 * hwPow(resetdy,7) / resety + resetx * hwPow(resetdy,9) / resetdx;
             iterator^.Angle:= hwRound(resetdy*_2048 / _PI);
+            if not iterator^.dY.isNegative then iterator^.Angle:= 2048-iterator^.Angle;
+            if iterator^.dX.isNegative then iterator^.Angle:= 4096-iterator^.Angle;
             end
         // VISUAL USE OF ANGLE ONLY
         else if (CurAmmoGear <> nil) and (CurAmmoGear^.Kind = gtKamikaze) and (CurAmmoGear^.Hedgehog = iterator^.Hedgehog) then