mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 15:01:41 +00:00
And cshift patch here too..
This commit is contained in:
parent
c2044ccdbf
commit
fa4ee64984
1 changed files with 18 additions and 0 deletions
|
@ -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 ();
|
||||
|
|
Loading…
Reference in a new issue