mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 23:11:58 +00:00
- 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:
parent
482d7631f4
commit
e0bd67de5a
1 changed files with 6 additions and 0 deletions
|
@ -1004,6 +1004,12 @@ void APowerFlight::EndEffect ()
|
|||
|
||||
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))
|
||||
{
|
||||
FTextureID picnum = TexMan.CheckForTexture ("SPFLY0", FTexture::TEX_MiscPatch);
|
||||
|
|
Loading…
Reference in a new issue