mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
In G_DisplayRest, be sure to always un-apply a previously applied tint.
This fixes the screen keeping the bluish tint even after shattering a frozen player in the splitscreen mod. git-svn-id: https://svn.eduke32.com/eduke32@2938 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
28cc08a65f
commit
627476541b
1 changed files with 15 additions and 2 deletions
|
@ -2926,8 +2926,21 @@ void G_DisplayRest(int32_t smoothratio)
|
|||
else
|
||||
M_DisplayMenus();
|
||||
|
||||
if (tempTint.f > 0 || applyTint)
|
||||
G_FadePalette(tempTint.r,tempTint.g,tempTint.b,tempTint.f|128);
|
||||
{
|
||||
static int32_t applied = 0;
|
||||
|
||||
if (tempTint.f > 0 || applyTint)
|
||||
{
|
||||
G_FadePalette(tempTint.r,tempTint.g,tempTint.b,tempTint.f|128);
|
||||
applied = 1;
|
||||
}
|
||||
else if (applied)
|
||||
{
|
||||
// be sure to always un-apply a tint.
|
||||
setpalettefade(0,0,0, 0);
|
||||
applied = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void G_DoThirdPerson(DukePlayer_t *pp, vec3_t *vect,int16_t *vsectnum, int32_t ang, int32_t horiz)
|
||||
|
|
Loading…
Reference in a new issue