mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 21:20:33 +00:00
[nq] Use SCR_NewScene in CL_SetState
This was missed when changing CL_ClearState. Fixes segfault on respawn.
This commit is contained in:
parent
86faeba31a
commit
4515b0d7f0
1 changed files with 2 additions and 2 deletions
|
@ -573,10 +573,10 @@ CL_SetState (cactive_t state)
|
|||
cl.viewstate.drift_enabled = !cls.demoplayback;
|
||||
Sys_MaskPrintf (SYS_net, "CL_SetState: %d -> %d\n", old_state, state);
|
||||
if (old_state != state) {
|
||||
if (old_state == ca_active) {
|
||||
if (old_state == ca_active && state != ca_disconnected) {
|
||||
// leaving active state
|
||||
S_AmbientOff ();
|
||||
r_funcs->R_ClearState ();
|
||||
SCR_NewScene (0);
|
||||
}
|
||||
switch (state) {
|
||||
case ca_disconnected:
|
||||
|
|
Loading…
Reference in a new issue