Say bug fixed, and hopefully the chaining bug too.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1361 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
d113f934ba
commit
404f706512
13
fteqtv/qw.c
13
fteqtv/qw.c
|
@ -656,7 +656,10 @@ void Prox_SendInitialEnts(sv_t *qtv, oproxy_t *prox, netmsg_t *msg)
|
||||||
int i;
|
int i;
|
||||||
WriteByte(msg, svc_packetentities);
|
WriteByte(msg, svc_packetentities);
|
||||||
for (i = 0; i < qtv->maxents; i++)
|
for (i = 0; i < qtv->maxents; i++)
|
||||||
SV_WriteDelta(i, &nullentstate, &qtv->entity[i].current, msg, true);
|
{
|
||||||
|
if (qtv->entity[i].current.modelindex)
|
||||||
|
SV_WriteDelta(i, &nullentstate, &qtv->entity[i].current, msg, true);
|
||||||
|
}
|
||||||
WriteShort(msg, 0);
|
WriteShort(msg, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -923,7 +926,8 @@ void QTV_Say(sv_t *qtv, viewer_t *v, char *message)
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
netmsg_t msg;
|
netmsg_t msg;
|
||||||
|
|
||||||
message[strlen(message)-1] = '\0';
|
if (message[strlen(message)-1] == '\"')
|
||||||
|
message[strlen(message)-1] = '\0';
|
||||||
|
|
||||||
InitNetMsg(&msg, buf, sizeof(buf));
|
InitNetMsg(&msg, buf, sizeof(buf));
|
||||||
|
|
||||||
|
@ -962,6 +966,8 @@ void ParseQWC(sv_t *qtv, viewer_t *v, netmsg_t *m)
|
||||||
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);
|
||||||
|
else if (!strncmp(buf, "say ", 4) && !qtv->notalking)
|
||||||
|
QTV_Say(qtv, v, buf);
|
||||||
else if (!strncmp(buf, "modellist ", 10))
|
else if (!strncmp(buf, "modellist ", 10))
|
||||||
{
|
{
|
||||||
char *cmd = buf+10;
|
char *cmd = buf+10;
|
||||||
|
@ -1152,8 +1158,7 @@ void QW_UpdateUDPStuff(sv_t *qtv)
|
||||||
{
|
{
|
||||||
sprintf(buffer, "a\n%i\n0\n", qtv->mastersequence++); //fill buffer with a heartbeat
|
sprintf(buffer, "a\n%i\n0\n", qtv->mastersequence++); //fill buffer with a heartbeat
|
||||||
//why is there no \xff\xff\xff\xff ?..
|
//why is there no \xff\xff\xff\xff ?..
|
||||||
NET_SendPacket(qtv->qwdsocket, 1, "k", from); //ping, just like qw.
|
NET_SendPacket(qtv->qwdsocket, strlen(buffer), buffer, from);
|
||||||
NET_SendPacket(qtv->qwdsocket, strlen(buffer), buffer, from); //ping, just like qw.
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
printf("Cannot resolve master %s\n", qtv->master);
|
printf("Cannot resolve master %s\n", qtv->master);
|
||||||
|
|
Loading…
Reference in New Issue