summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-04-18 19:51:14 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-04-18 19:51:14 +0200
commitac15175923f6d211c98dbc2b7213792517364b6c (patch)
treef53d6afece3ce1658a339713d342fffaffcf51db /src
parentc7a85b182049d36b5d5814ce0629592fc97021ba (diff)
Truncate too long messages in Netchan_Transmit (instead of erroring out).
Diffstat (limited to 'src')
-rw-r--r--src/qcommon/net_chan.c3
1 files changed, 2 insertions, 1 deletions
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;