From 5e85f736bbbe0a24036463f29b3d04f98f9e8b7c Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sun, 1 Apr 2012 03:18:34 +0000 Subject: [PATCH] - Fixed: Reset to the PlayerPawn's default render style and alpha in G_PlayerFinishLevel(). SVN r3502 (trunk) --- src/g_game.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/g_game.cpp b/src/g_game.cpp index cee9259b35..04d431ba3b 100644 --- a/src/g_game.cpp +++ b/src/g_game.cpp @@ -1224,9 +1224,17 @@ void G_PlayerFinishLevel (int player, EFinishLevelType mode, int flags) // Unselect powered up weapons if the unpowered counterpart is pending p->ReadyWeapon=p->PendingWeapon; } - p->mo->flags &= ~MF_SHADOW; // cancel invisibility - p->mo->RenderStyle = STYLE_Normal; - p->mo->alpha = FRACUNIT; + // reset invisibility to default + if (p->mo->GetDefault()->flags & MF_SHADOW) + { + p->mo->flags |= MF_SHADOW; + } + else + { + p->mo->flags &= ~MF_SHADOW; + } + p->mo->RenderStyle = p->mo->GetDefault()->RenderStyle; + p->mo->alpha = p->mo->GetDefault()->alpha; p->extralight = 0; // cancel gun flashes p->fixedcolormap = NOFIXEDCOLORMAP; // cancel ir goggles p->fixedlightlevel = -1;