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:
Bill Currie 2002-08-27 16:28:58 +00:00
parent f473a4fa17
commit bb1adf63a9

View file

@ -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;
}
}