diff --git a/Quake/sv_main.c b/Quake/sv_main.c index ed3722d2..07f07d3b 100644 --- a/Quake/sv_main.c +++ b/Quake/sv_main.c @@ -597,9 +597,11 @@ void SV_WriteEntitiesToClient (edict_t *clent, sizebuf_t *msg) continue; // not visible } - //johnfitz -- max size for protocol 15 is 18 bytes, not 16 as originally - //assumed here. And, for protocol 85 the max size is actually 24 bytes. - if (msg->cursize + 24 > msg->maxsize) + // johnfitz -- max size for protocol 15 is 18 bytes, not 16 as originally + // assumed here. And, for protocol 85 the max size is actually 24 bytes. + // For float coords and angles the limit is 39. + // FIXME: Use tighter limit according to protocol flags and send bits. + if (msg->cursize + 39 > msg->maxsize) { //johnfitz -- less spammy overflow message if (!dev_overflows.packetsize || dev_overflows.packetsize + CONSOLE_RESPAM_TIME < realtime )