mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
- Fixed: Reset to the PlayerPawn's default render style and alpha in G_PlayerFinishLevel().
SVN r3502 (trunk)
This commit is contained in:
parent
6ea93d28e2
commit
5e85f736bb
1 changed files with 11 additions and 3 deletions
|
@ -1224,9 +1224,17 @@ void G_PlayerFinishLevel (int player, EFinishLevelType mode, int flags)
|
||||||
// Unselect powered up weapons if the unpowered counterpart is pending
|
// Unselect powered up weapons if the unpowered counterpart is pending
|
||||||
p->ReadyWeapon=p->PendingWeapon;
|
p->ReadyWeapon=p->PendingWeapon;
|
||||||
}
|
}
|
||||||
p->mo->flags &= ~MF_SHADOW; // cancel invisibility
|
// reset invisibility to default
|
||||||
p->mo->RenderStyle = STYLE_Normal;
|
if (p->mo->GetDefault()->flags & MF_SHADOW)
|
||||||
p->mo->alpha = FRACUNIT;
|
{
|
||||||
|
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->extralight = 0; // cancel gun flashes
|
||||||
p->fixedcolormap = NOFIXEDCOLORMAP; // cancel ir goggles
|
p->fixedcolormap = NOFIXEDCOLORMAP; // cancel ir goggles
|
||||||
p->fixedlightlevel = -1;
|
p->fixedlightlevel = -1;
|
||||||
|
|
Loading…
Reference in a new issue