# HG changeset patch
# User unc0rr
# Date 1221231462 0
# Node ID 7ffc2c9e722445e78ebf4db17c422feb7b924ccb
# Parent  3ffaf75572dd5858c1c68f389f54b108678b650d
D'oh

diff -r 3ffaf75572dd -r 7ffc2c9e7224 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;