mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
fix the command appended to f_reply message (so-and-so: Average percent
fullbright for all loaded skins is 4.9%+forward 101) and make the cl_freply time check work closer to properly
This commit is contained in:
parent
f473a4fa17
commit
bb1adf63a9
1 changed files with 16 additions and 15 deletions
|
@ -453,10 +453,9 @@ Team_F_Skins (char *args)
|
|||
return ("say \"Skin not currently loaded.\"");
|
||||
}
|
||||
|
||||
freply_t f_replies[] = {
|
||||
static freply_t f_replies[] = {
|
||||
{"f_version", Team_F_Version, 0},
|
||||
{"f_skins", Team_F_Skins, 0},
|
||||
{0, 0}
|
||||
};
|
||||
|
||||
void
|
||||
|
@ -475,11 +474,13 @@ Team_ParseChat (const char *string)
|
|||
while (isspace((byte) *s))
|
||||
s++;
|
||||
|
||||
for (i = 0; f_replies[i].name; i++) {
|
||||
if (!strncmp(f_replies[i].name, s, strlen(f_replies[i].name)) && cl_freply->value) {
|
||||
for (i = 0; sizeof (f_replies) / sizeof (f_replies[0]); i++) {
|
||||
if (!strncmp(f_replies[i].name, s, strlen(f_replies[i].name))
|
||||
&& realtime - f_replies[i].lasttime >= cl_freply->value) {
|
||||
while (*s && !isspace((byte) *s))
|
||||
s++;
|
||||
Cbuf_AddText(cl_cbuf, f_replies[i].func(s));
|
||||
Cbuf_AddText(cl_cbuf, "\n");
|
||||
f_replies[i].lasttime = realtime;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue