[nq] Use SCR_NewScene in CL_SetState

This was missed when changing CL_ClearState. Fixes segfault on respawn.
This commit is contained in:
Bill Currie 2022-05-11 14:14:43 +09:00
parent 86faeba31a
commit 4515b0d7f0

View file

@ -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: