client: reset any active palette shift on disconnect

Noticed sometimes (usually when playing a demo, then loading a level)
that the active palette shift remains when starting a new level.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2012-12-18 13:14:32 +10:30
parent fe2b85b1c5
commit 00a3e9d26e

View File

@ -145,6 +145,11 @@ CL_Disconnect(void)
// stop sounds (especially looping!)
S_StopAllSounds(true);
/* Clear up view, remove palette shift */
scr_centertime_off = 0;
cl.cshifts[0].percent = 0;
VID_SetPalette(host_basepal);
// if running a local server, shut it down
if (cls.demoplayback)
CL_StopPlayback();