[qw] Use SCR_NewScene instead of R_ClearState

This is the same issue as in nq, but I'd entirely forgotten to do qw. I
imagine similar segfaults would have occurred.
This commit is contained in:
Bill Currie 2022-05-11 14:16:23 +09:00
parent 4515b0d7f0
commit ad8599574a

View file

@ -699,7 +699,7 @@ CL_ClearState (void)
CL_Init_Entity (cl.viewstate.weapon_entity);
r_data->view_model = cl.viewstate.weapon_entity;
r_funcs->R_ClearState ();
SCR_NewScene (0);
SZ_Clear (&cls.netchan.message);
@ -1434,7 +1434,7 @@ CL_SetState (cactive_t state)
if (cl_autorecord && cls.demorecording)
CL_StopRecording ();
r_funcs->R_ClearState ();
SCR_NewScene (0);
} else if (state == ca_active) {
// entering active state
VID_SetCaption (cls.servername->str);