- Show crosshair while rope swinging
authorunc0rr
Wed, 28 May 2008 17:58:41 +0000
changeset 957 ba340a727909
parent 956 19003f7fc174
child 958 92bb9fa046f9
- Show crosshair while rope swinging - Increase idle hedgehog animation speed
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Tue May 27 14:32:55 2008 +0000
+++ b/hedgewars/uGears.pas	Wed May 28 17:58:41 2008 +0000
@@ -649,7 +649,7 @@
 	DrawRotatedF(sprHHIdle,
 		hwRound(Gear^.X) + 1 + WorldDx,
 		hwRound(Gear^.Y) - 3 + WorldDy,
-		(RealTicks div 256 + Gear^.Pos) mod 19,
+		(RealTicks div 128 + Gear^.Pos) mod 19,
 		hwSign(Gear^.dX),
 		0);
 
@@ -679,7 +679,7 @@
            DrawSprite(sprFinger, hwRound(Gear^.X) - 16 + WorldDx, hwRound(Gear^.Y) - 64 + WorldDy,
                       GameTicks div 32 mod 16);
 
-        if (Gear^.State and (gstMoving or gstDrowning)) = 0 then
+        if (Gear^.State and (gstHHJumping or gstDrowning)) = 0 then
            if (Gear^.State and gstHHThinking) <> 0 then
               DrawSprite(sprQuestion, hwRound(Gear^.X) - 10 + WorldDx, hwRound(Gear^.Y) - cHHRadius - 34 + WorldDy, 0)
               else