Complete all stuff commands when getting server info/data.

When the stufftext buffering was implemented, we forgot about
svc_serverdata...

While nq might normally not have the issue, I thought it best to implement
in nq, too.
This commit is contained in:
Bill Currie 2012-05-26 11:31:23 +09:00
parent 28d16b6f57
commit fd78d900e9
2 changed files with 11 additions and 2 deletions

View file

@ -982,10 +982,15 @@ CL_ParseServerMessage (void)
MSG_ReadAngleV (net_message, dest);
break;
}
case svc_serverinfo:
// make sure any stuffed commands are done
if (stuffbuf && stuffbuf->str[0]) {
Cbuf_AddText (host_cbuf, stuffbuf->str);
dstring_clearstr (stuffbuf);
}
Cbuf_Execute_Stack (host_cbuf);
CL_ParseServerInfo ();
// leave intermission full screen
// leave full screen intermission
r_data->vid->recalc_refdef = true;
break;

View file

@ -1431,6 +1431,10 @@ CL_ParseServerMessage (void)
}
case svc_serverdata:
// make sure any stuffed commands are done
if (stuffbuf && stuffbuf->str[0]) {
Cbuf_AddText (cl_stbuf, stuffbuf->str);
dstring_clearstr (stuffbuf);
}
Cbuf_Execute_Stack (cl_stbuf);
CL_ParseServerData ();
// leave full screen intermission