hedgewars/VGSHandlers.inc
changeset 4152 07008cb354f9
parent 4034 634a8c8682de
child 4161 1f19dcdabe19
--- a/hedgewars/VGSHandlers.inc	Sat Nov 06 20:38:59 2010 +0100
+++ b/hedgewars/VGSHandlers.inc	Sat Nov 06 23:07:20 2010 +0300
@@ -33,6 +33,12 @@
     X:= X + (cWindSpeedf * 200 + dX + tdX) * Steps;
     Y:= Y + (dY + tdY + cGravityf * vobFallSpeed) * Steps;
     Angle:= Angle + dAngle * Steps;
+    if Angle > 360 then
+        Angle:= Angle - 360
+    else
+        if Angle < - 360 then
+            Angle:= Angle + 360;
+    
   
     if (round(X) >= cLeftScreenBorder) and
        (round(X) <= cRightScreenBorder) and