From: havoc Date: Fri, 3 Dec 2004 18:57:41 +0000 (+0000) Subject: fixed a Sys_Error in the client when connected to QUAKE protocol servers (it was... X-Git-Tag: xonotic-v0.1.0preview~5314 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8a3016d255c3b2548641b1b8d7586ef2e4592e24;p=xonotic%2Fdarkplaces.git 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 --- 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) {