From 9a28216e305dcdb70152597ac062e466afdb7e3a Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 20 Sep 2012 02:06:50 +0000 Subject: [PATCH] - Added HUDMSG_ALPHA flag. To use alpha with hud messages, you now need to include this flag, so old mods with extra arguments to hudmessage don't produce unexpected results. SVN r3876 (trunk) --- src/p_acs.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/p_acs.cpp b/src/p_acs.cpp index fdba35118..4fe558206 100644 --- a/src/p_acs.cpp +++ b/src/p_acs.cpp @@ -92,6 +92,7 @@ FRandom pr_acs ("ACS"); #define HUDMSG_LOG (0x80000000) #define HUDMSG_COLORSTRING (0x40000000) #define HUDMSG_ADDBLEND (0x20000000) +#define HUDMSG_ALPHA (0x10000000) // HUD message layers; these are not flags #define HUDMSG_LAYER_SHIFT 12 @@ -5723,7 +5724,10 @@ scriptwait: break; } msg->SetVisibility((type & HUDMSG_VISIBILITY_MASK) >> HUDMSG_VISIBILITY_SHIFT); - msg->SetAlpha(alpha); + if (type & HUDMSG_ALPHA) + { + msg->SetAlpha(alpha); + } if (type & HUDMSG_ADDBLEND) { msg->SetRenderStyle(STYLE_Add);