D'oh
authorunc0rr
Fri, 12 Sep 2008 14:57:42 +0000
changeset 1255 7ffc2c9e7224
parent 1254 3ffaf75572dd
child 1256 2754a6a8c8f1
D'oh
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Thu Sep 11 20:18:14 2008 +0000
+++ b/hedgewars/uGears.pas	Fri Sep 12 14:57:42 2008 +0000
@@ -877,13 +877,22 @@
 			HatVisibility:= HatVisibility - 0.2;
 	
 	if HatVisibility > 0 then
-		DrawTextureF(HatTex,
-			HatVisibility,
-			hwRound(Gear^.X) + 1 + WorldDx,
-			hwRound(Gear^.Y) - 8 + WorldDy,
-			(RealTicks div 128 + Gear^.Pos) mod 19,
-			hwSign(Gear^.dX),
-			32);
+		if DefaultPos then
+			DrawTextureF(HatTex,
+				HatVisibility,
+				hwRound(Gear^.X) + 1 + WorldDx,
+				hwRound(Gear^.Y) - 8 + WorldDy,
+				(RealTicks div 128 + Gear^.Pos) mod 19,
+				hwSign(Gear^.dX),
+				32)
+		else
+			DrawTextureF(HatTex,
+				HatVisibility,
+				hwRound(Gear^.X) + 1 + WorldDx,
+				hwRound(Gear^.Y) - 8 + WorldDy,
+				0,
+				hwSign(Gear^.dX),
+				32);
 	end;