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:
helixhorned 2012-08-20 21:22:41 +00:00
parent 28cc08a65f
commit 627476541b

View file

@ -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)