hedgewars/uGears.pas
changeset 1284 21916b5de218
parent 1283 a1e99d1e4fd3
child 1285 993845ea5c8d
--- a/hedgewars/uGears.pas	Sat Sep 20 04:51:06 2008 +0000
+++ b/hedgewars/uGears.pas	Mon Sep 22 22:14:01 2008 +0000
@@ -1096,6 +1096,7 @@
                      DrawRotatedf(sprCakeWalk, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, (GameTicks div 40) mod 6, hwSign(Gear^.dX), Gear^.DirAngle + hwSign(Gear^.dX) * 90)
                   else
                      DrawRotatedf(sprCakeDown, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, 5 - Gear^.Pos, hwSign(Gear^.dX), 0);
+       gtSeduction: DrawSprite(sprSeduction, hwRound(Gear^.X) - 8 + WorldDx, hwRound(Gear^.Y) - 8 + WorldDy, 0);
       gtWatermelon: DrawRotatedf(sprWatermelon, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, 0, 0, Gear^.DirAngle);
       gtMelonPiece: DrawRotatedf(sprWatermelon, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, 1, 0, Gear^.DirAngle);
      gtHellishBomb: DrawRotated(sprHellishBomb, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, 0, Gear^.DirAngle);
@@ -1237,7 +1238,7 @@
 			gtCase: begin
 					inc(t^.ar[i]^.Damage, Damage);
 
-					if t^.ar[i]^.Kind = gtHedgehog then
+					if (t^.ar[i]^.Kind = gtHedgehog) and (Damage > 0) then
 						AddDamageTag(hwRound(t^.ar[i]^.X), hwRound(t^.ar[i]^.Y), Damage, t^.ar[i]);
 
 					DeleteCI(t^.ar[i]);