# HG changeset patch
# User nemo
# Date 1337557375 14400
# Node ID d8fb38141950844223c881ac273f2c83fc1accd6
# Parent  8a2b23efed117a5a3808ab3516df8121df6b0cb6
Ok. I think *this* should flip it correctly...

diff -r 8a2b23efed11 -r d8fb38141950 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