From f0ccdf74ef8234be1d8c067515933cbc6be524ac Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Thu, 13 Dec 2012 23:54:58 +0000 Subject: Fix server ignoring client move commands if voip data is included. --- src/server/sv_client.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/server/sv_client.c b/src/server/sv_client.c index a6d1e3fb..374dbf49 100644 --- a/src/server/sv_client.c +++ b/src/server/sv_client.c @@ -1721,15 +1721,19 @@ void SV_ExecuteClientMessage( client_t *cl, msg_t *msg ) { } } while ( 1 ); + // read optional voip data + if ( c == clc_voip ) { +#ifdef USE_VOIP + SV_UserVoip( cl, msg ); + c = MSG_ReadByte( msg ); +#endif + } + // read the usercmd_t if ( c == clc_move ) { SV_UserMove( cl, msg, qtrue ); } else if ( c == clc_moveNoDelta ) { SV_UserMove( cl, msg, qfalse ); - } else if ( c == clc_voip ) { -#ifdef USE_VOIP - SV_UserVoip( cl, msg ); -#endif } else if ( c != clc_EOF ) { Com_Printf( "WARNING: bad command byte for client %i\n", (int) (cl - svs.clients) ); } -- cgit