hedgewars/HHHandlers.inc
changeset 304 8096e69e839e
parent 303 1659c4aad5ab
child 351 29bc9c36ad5f
--- a/hedgewars/HHHandlers.inc	Sun Dec 17 18:40:04 2006 +0000
+++ b/hedgewars/HHHandlers.inc	Sun Dec 17 20:50:49 2006 +0000
@@ -222,9 +222,9 @@
 procedure HedgehogChAngle(Gear: PGear);
 begin
 if ((Gear.State and (gstMoving or gstFalling)) = 0) then
-   if (Gear.Message and gm_Up    )<>0 then if Gear.Angle > 0         then dec(Gear.Angle)
+   if (Gear.Message and gm_Up    )<>0 then if Gear.Angle > CurMinAngle then dec(Gear.Angle)
    else else
-   if (Gear.Message and gm_Down  )<>0 then if Gear.Angle < cMaxAngle then inc(Gear.Angle);
+   if (Gear.Message and gm_Down  )<>0 then if Gear.Angle < CurMaxAngle then inc(Gear.Angle);
 end;
 
 procedure doStepHedgehog(Gear: PGear); forward;