From 8a3016d255c3b2548641b1b8d7586ef2e4592e24 Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 3 Dec 2004 18:57:41 +0000 Subject: [PATCH] fixed a Sys_Error in the client when connected to QUAKE protocol servers (it was trying to send an empty message) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4824 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_input.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cl_input.c b/cl_input.c index 386552ce..5f92b54c 100644 --- a/cl_input.c +++ b/cl_input.c @@ -568,6 +568,9 @@ void CL_SendMove(void) // deliver the message if (cls.demoplayback) return; + // nothing to send + if (!buf.cursize) + return; if (NetConn_SendUnreliableMessage(cls.netcon, &buf) == -1) { -- 2.39.2