diff -r 718f98a9df12 -r 4454aa0523e7 hedgewars/uGearsRender.pas --- a/hedgewars/uGearsRender.pas Tue Aug 30 12:32:33 2011 -0400 +++ b/hedgewars/uGearsRender.pas Wed Aug 31 00:58:48 2011 -0400 @@ -227,13 +227,6 @@ Tint($FF, $FF, $FF, $FF) end; - if (CurAmmoGear <> nil) and - (CurrentHedgehog^.Gear <> nil) and - (CurrentHedgehog^.Gear = Gear) and - (CurAmmoGear^.Kind = gtTardis) then Tint($FF, $FF, $FF, CurAmmoGear^.Timer div 20) - // probably will need a new flag for this - else if (Gear^.State and gstTmpFlag <> 0) then Tint($FF, $FF, $FF, $FF-Gear^.Timer); - if ((Gear^.State and gstWinner) <> 0) and ((CurAmmoGear = nil) or (CurAmmoGear^.Kind <> gtPickHammer)) then begin @@ -1088,6 +1081,15 @@ //DrawRotatedF(sprFlake, x-SpritesData[sprFlake].Width div 2, y-SpritesData[sprFlake].Height div 2, Gear^.Timer, 1, Gear^.DirAngle); end; gtStructure: DrawSprite(sprTarget, x - 16, y - 16, 0); + gtTardis: if Gear^.Pos <> 4 then + begin + if (Gear^.Pos = 1) or (Gear^.Pos = 3) then + Tint($FF, $FF, $FF, max($00, round(Gear^.Power * (1-abs(0.5 - (GameTicks mod 2000) / 2000))))); + DrawSprite(sprTardis, x-24, y-63,0); + if (Gear^.Pos = 1) or (Gear^.Pos = 3) then + Tint($FF, $FF, $FF, $FF) + end; + end; if Gear^.RenderTimer and (Gear^.Tex <> nil) then DrawCentered(x + 8, y + 8, Gear^.Tex);