mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
fix a couple places where reliable messages were getting sent to bots.
fixes the segs on bot_add in fbxa
This commit is contained in:
parent
3855a8e40c
commit
a378581570
1 changed files with 12 additions and 6 deletions
|
@ -688,9 +688,12 @@ SV_UpdateToReliableMessages (void)
|
|||
if (sv_fields.gravity != -1
|
||||
&& host_client->entgravity != SVfloat (ent, gravity)) {
|
||||
host_client->entgravity = SVfloat (ent, gravity);
|
||||
MSG_ReliableWrite_Begin (&host_client->backbuf, svc_entgravity, 5);
|
||||
MSG_ReliableWrite_Float (&host_client->backbuf,
|
||||
host_client->entgravity);
|
||||
if (host_client->state != cs_server) {
|
||||
MSG_ReliableWrite_Begin (&host_client->backbuf,
|
||||
svc_entgravity, 5);
|
||||
MSG_ReliableWrite_Float (&host_client->backbuf,
|
||||
host_client->entgravity);
|
||||
}
|
||||
if (sv.demorecording) {
|
||||
DemoWrite_Begin (dem_single, i, 5);
|
||||
MSG_WriteByte (&demo.dbuf->sz, svc_entgravity);
|
||||
|
@ -700,9 +703,12 @@ SV_UpdateToReliableMessages (void)
|
|||
if (sv_fields.maxspeed != -1
|
||||
&& host_client->maxspeed != SVfloat (ent, maxspeed)) {
|
||||
host_client->maxspeed = SVfloat (ent, maxspeed);
|
||||
MSG_ReliableWrite_Begin (&host_client->backbuf, svc_maxspeed, 5);
|
||||
MSG_ReliableWrite_Float (&host_client->backbuf,
|
||||
host_client->maxspeed);
|
||||
if (host_client->state != cs_server) {
|
||||
MSG_ReliableWrite_Begin (&host_client->backbuf,
|
||||
svc_maxspeed, 5);
|
||||
MSG_ReliableWrite_Float (&host_client->backbuf,
|
||||
host_client->maxspeed);
|
||||
}
|
||||
if (sv.demorecording) {
|
||||
DemoWrite_Begin (dem_single, i, 5);
|
||||
MSG_WriteByte (&demo.dbuf->sz, svc_maxspeed);
|
||||
|
|
Loading…
Reference in a new issue