And cshift patch here too..

This commit is contained in:
Adam Olsen 2001-04-20 13:33:56 +00:00
parent c2044ccdbf
commit fa4ee64984

View file

@ -444,6 +444,21 @@ CL_ClearState (void)
cl.free_efrags[i].entnext = NULL;
}
/*
CL_StopCshifts
Cleans the Cshifts, so your screen doesn't stay red after a timedemo :)
*/
void
CL_StopCshifts (void)
{
int i;
for (i = 0; i < NUM_CSHIFTS; i++)
cl.cshifts[i].percent = 0;
for (i = 0; i < MAX_CL_STATS; i++)
cl.stats[i] = 0;
}
/*
CL_Disconnect
@ -462,6 +477,9 @@ CL_Disconnect (void)
// stop sounds (especially looping!)
S_StopAllSounds (true);
// Clean the Cshifts
CL_StopCshifts ();
// if running a local server, shut it down
if (cls.demoplayback)
CL_StopPlayback ();