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
|
@ -453,10 +453,9 @@ Team_F_Skins (char *args)
|
||||||
return ("say \"Skin not currently loaded.\"");
|
return ("say \"Skin not currently loaded.\"");
|
||||||
}
|
}
|
||||||
|
|
||||||
freply_t f_replies[] = {
|
static freply_t f_replies[] = {
|
||||||
{"f_version", Team_F_Version, 0},
|
{"f_version", Team_F_Version, 0},
|
||||||
{"f_skins", Team_F_Skins, 0},
|
{"f_skins", Team_F_Skins, 0},
|
||||||
{0, 0}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -475,11 +474,13 @@ Team_ParseChat (const char *string)
|
||||||
while (isspace((byte) *s))
|
while (isspace((byte) *s))
|
||||||
s++;
|
s++;
|
||||||
|
|
||||||
for (i = 0; f_replies[i].name; i++) {
|
for (i = 0; sizeof (f_replies) / sizeof (f_replies[0]); i++) {
|
||||||
if (!strncmp(f_replies[i].name, s, strlen(f_replies[i].name)) && cl_freply->value) {
|
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))
|
while (*s && !isspace((byte) *s))
|
||||||
s++;
|
s++;
|
||||||
Cbuf_AddText(cl_cbuf, f_replies[i].func(s));
|
Cbuf_AddText(cl_cbuf, f_replies[i].func(s));
|
||||||
|
Cbuf_AddText(cl_cbuf, "\n");
|
||||||
f_replies[i].lasttime = realtime;
|
f_replies[i].lasttime = realtime;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue