mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-06-02 17:41:10 +00:00
[nq,qw] Clean up centerprint dstring
It was quite redundant and the optimization it vaguely provided belongs in sbar and not in the protocol parser.
This commit is contained in:
parent
c0cfeec5d6
commit
2a53047007
5 changed files with 10 additions and 37 deletions
|
@ -664,8 +664,7 @@ CL_ClearState (void)
|
|||
|
||||
SZ_Clear (&cls.netchan.message);
|
||||
|
||||
if (centerprint)
|
||||
dstring_clearstr (centerprint);
|
||||
Sbar_CenterPrint (0);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1435,7 +1434,6 @@ CL_Shutdown (void *data)
|
|||
}
|
||||
Info_Destroy (cls.userinfo);
|
||||
Cbuf_DeleteStack (cl_stbuf);
|
||||
dstring_delete (centerprint);
|
||||
dstring_delete (cls.servername);
|
||||
dstring_delete (cls.downloadtempname);
|
||||
dstring_delete (cls.downloadname);
|
||||
|
@ -1500,7 +1498,6 @@ CL_Init (void)
|
|||
|
||||
Info_SetValueForStarKey (cls.userinfo, "*ver", QW_VERSION, 0);
|
||||
|
||||
centerprint = dstring_newstr ();
|
||||
cls.servername = dstring_newstr ();
|
||||
cls.downloadtempname = dstring_newstr ();
|
||||
cls.downloadname = dstring_newstr ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue