- added: If a PowerFlight item got a valid icon don't use the spinning wings for the HUD display

SVN r2504 (trunk)
This commit is contained in:
Christoph Oelckers 2010-08-10 19:22:43 +00:00
parent 482d7631f4
commit e0bd67de5a

View file

@ -1004,6 +1004,12 @@ void APowerFlight::EndEffect ()
bool APowerFlight::DrawPowerup (int x, int y) bool APowerFlight::DrawPowerup (int x, int y)
{ {
// If this item got a valid icon use that instead of the default spinning wings.
if (Icon.isValid())
{
return Super::DrawPowerup(x, y);
}
if (EffectTics > BLINKTHRESHOLD || !(EffectTics & 16)) if (EffectTics > BLINKTHRESHOLD || !(EffectTics & 16))
{ {
FTextureID picnum = TexMan.CheckForTexture ("SPFLY0", FTexture::TEX_MiscPatch); FTextureID picnum = TexMan.CheckForTexture ("SPFLY0", FTexture::TEX_MiscPatch);