# HG changeset patch # User nemo # Date 1369217826 14400 # Node ID 8a829987d514873bb5629bee7e03c921ac9997df # Parent f9d53af63f042a9f71432e253158e053a29f8676 as long as a generic placeholder tint is in place. can't just exit diff -r f9d53af63f04 -r 8a829987d514 hedgewars/uGearsRender.pas --- a/hedgewars/uGearsRender.pas Tue May 21 23:17:28 2013 -0400 +++ b/hedgewars/uGearsRender.pas Wed May 22 06:17:06 2013 -0400 @@ -1061,36 +1061,36 @@ if ((Gear^.Pos and posCaseAmmo) <> 0) then begin if Gear^.State and gstFrozen <> 0 then + DrawSprite(sprCase, x - 24, y - 28, 0) + else begin - DrawSprite(sprCase, x - 24, y - 28, 0); - exit - end; - i:= (GameTicks shr 6) mod 64; - if i > 18 then i:= 0; - DrawSprite(sprCase, x - 24, y - 24, i) + i:= (GameTicks shr 6) mod 64; + if i > 18 then i:= 0; + DrawSprite(sprCase, x - 24, y - 24, i) + end end else if ((Gear^.Pos and posCaseHealth) <> 0) then begin if Gear^.State and gstFrozen <> 0 then + DrawSprite(sprFAid, x - 24, y - 28, 0) + else begin - DrawSprite(sprFAid, x - 24, y - 28, 0); - exit - end; - i:= ((GameTicks shr 6) + 38) mod 64; - if i > 13 then i:= 0; - DrawSprite(sprFAid, x - 24, y - 24, i); + i:= ((GameTicks shr 6) + 38) mod 64; + if i > 13 then i:= 0; + DrawSprite(sprFAid, x - 24, y - 24, i) + end end else if ((Gear^.Pos and posCaseUtility) <> 0) then begin if Gear^.State and gstFrozen <> 0 then + DrawSprite(sprUtility, x - 24, y - 28, 0) + else begin - DrawSprite(sprUtility, x - 24, y - 28, 0); - exit - end; - i:= (GameTicks shr 6) mod 70; - if i > 23 then i:= 0; - i:= i mod 12; - DrawSprite(sprUtility, x - 24, y - 24, i); + i:= (GameTicks shr 6) mod 70; + if i > 23 then i:= 0; + i:= i mod 12; + DrawSprite(sprUtility, x - 24, y - 24, i) + end end end; if Gear^.Timer < 1833 then