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
|
@ -163,7 +163,6 @@ const char *svc_strings[] = {
|
|||
"NEW PROTOCOL"
|
||||
};
|
||||
|
||||
dstring_t *centerprint;
|
||||
int oldparsecountmod;
|
||||
int parsecountmod;
|
||||
double parsecounttime;
|
||||
|
@ -1437,10 +1436,6 @@ CL_ParseServerMessage (void)
|
|||
|
||||
case svc_centerprint:
|
||||
str = MSG_ReadString (net_message);
|
||||
if (strcmp (str, centerprint->str)) {
|
||||
dstring_copystr (centerprint, str);
|
||||
//FIXME logging
|
||||
}
|
||||
Sbar_CenterPrint (str);
|
||||
break;
|
||||
|
||||
|
@ -1486,10 +1481,6 @@ CL_ParseServerMessage (void)
|
|||
SCR_SetFullscreen (1);
|
||||
cl.completed_time = realtime;
|
||||
str = MSG_ReadString (net_message);
|
||||
if (strcmp (str, centerprint->str)) {
|
||||
dstring_copystr (centerprint, str);
|
||||
//FIXME logging
|
||||
}
|
||||
Sbar_CenterPrint (str);
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue