mirror of
https://github.com/libretro/libretro-tyrquake.git
synced 2025-02-12 03:31:37 +00:00
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:
parent
fe2b85b1c5
commit
00a3e9d26e
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user