mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-29 07:02:12 +00:00
fix the ezquake say bug again. but a bit better this time.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1373 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
f814d3a67c
commit
8859acced0
1 changed files with 3 additions and 3 deletions
|
@ -990,7 +990,7 @@ void QTV_Say(sv_t *qtv, viewer_t *v, char *message)
|
||||||
WriteByte(&msg, 3); //PRINT_CHAT
|
WriteByte(&msg, 3); //PRINT_CHAT
|
||||||
WriteString2(&msg, v->name);
|
WriteString2(&msg, v->name);
|
||||||
WriteString2(&msg, "\x8d ");
|
WriteString2(&msg, "\x8d ");
|
||||||
WriteString2(&msg, message+5);
|
WriteString2(&msg, message);
|
||||||
WriteString(&msg, "\n");
|
WriteString(&msg, "\n");
|
||||||
|
|
||||||
Multicast(qtv, msg.data, msg.cursize, dem_all, (unsigned int)-1);
|
Multicast(qtv, msg.data, msg.cursize, dem_all, (unsigned int)-1);
|
||||||
|
@ -1052,9 +1052,9 @@ void ParseQWC(sv_t *qtv, viewer_t *v, netmsg_t *m)
|
||||||
if (!strcmp(buf, "new"))
|
if (!strcmp(buf, "new"))
|
||||||
SendServerData(qtv, v);
|
SendServerData(qtv, v);
|
||||||
else if (!strncmp(buf, "say \"", 5) && !qtv->notalking)
|
else if (!strncmp(buf, "say \"", 5) && !qtv->notalking)
|
||||||
QTV_Say(qtv, v, buf);
|
QTV_Say(qtv, v, buf+5);
|
||||||
else if (!strncmp(buf, "say ", 4) && !qtv->notalking)
|
else if (!strncmp(buf, "say ", 4) && !qtv->notalking)
|
||||||
QTV_Say(qtv, v, buf);
|
QTV_Say(qtv, v, buf+4);
|
||||||
else if (!strncmp(buf, "modellist ", 10))
|
else if (!strncmp(buf, "modellist ", 10))
|
||||||
{
|
{
|
||||||
char *cmd = buf+10;
|
char *cmd = buf+10;
|
||||||
|
|
Loading…
Reference in a new issue