From ac15175923f6d211c98dbc2b7213792517364b6c Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Wed, 18 Apr 2018 19:51:14 +0200 Subject: Truncate too long messages in Netchan_Transmit (instead of erroring out). --- src/qcommon/net_chan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/qcommon') diff --git a/src/qcommon/net_chan.c b/src/qcommon/net_chan.c index 422f64fc..0814dd43 100644 --- a/src/qcommon/net_chan.c +++ b/src/qcommon/net_chan.c @@ -175,7 +175,8 @@ void Netchan_Transmit( netchan_t *chan, int length, const byte *data ) { byte send_buf[MAX_PACKETLEN]; if ( length > MAX_MSGLEN ) { - Com_Error( ERR_DROP, "Netchan_Transmit: length = %i", length ); + Com_Printf("^3Netchan_Transmit: truncated a message of length %i\n", length); + length = MAX_MSGLEN; } chan->unsentFragmentStart = 0; -- cgit