From e0bd67de5a4dd7c2f3e986cfd714e09936608a39 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 10 Aug 2010 19:22:43 +0000 Subject: [PATCH] - added: If a PowerFlight item got a valid icon don't use the spinning wings for the HUD display SVN r2504 (trunk) --- src/g_shared/a_artifacts.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/g_shared/a_artifacts.cpp b/src/g_shared/a_artifacts.cpp index 088e480c5..c4f0f9d6a 100644 --- a/src/g_shared/a_artifacts.cpp +++ b/src/g_shared/a_artifacts.cpp @@ -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);