From 81be9016078b1222a778005d409344f74bfcbd9b Mon Sep 17 00:00:00 2001 From: "Tony J. White" Date: Tue, 20 Mar 2007 03:02:33 +0000 Subject: * calling teamvotes would often cause strange client behaviour. Common symptoms I've seen are: incorrect stage notifications drawing the wrong number of available build points broken plant models on niveus Surprisingly, there was no open bug report for this that I could find. --- src/cgame/cg_servercmds.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/cgame/cg_servercmds.c b/src/cgame/cg_servercmds.c index 60d6deba..2665df16 100644 --- a/src/cgame/cg_servercmds.c +++ b/src/cgame/cg_servercmds.c @@ -353,7 +353,10 @@ static void CG_ConfigStringModified( void ) cgs.teamVoteModified[ num - CS_TEAMVOTE_NO ] = qtrue; } else if( num >= CS_TEAMVOTE_STRING && num <= CS_TEAMVOTE_STRING + 1 ) - Q_strncpyz( cgs.teamVoteString[ num - CS_TEAMVOTE_STRING ], str, sizeof( cgs.teamVoteString ) ); + { + Q_strncpyz( cgs.teamVoteString[ num - CS_TEAMVOTE_STRING ], str, + sizeof( cgs.teamVoteString[ num - CS_TEAMVOTE_STRING ] ) ); + } else if( num == CS_INTERMISSION ) cg.intermissionStarted = atoi( str ); else if( num >= CS_MODELS && num < CS_MODELS+MAX_MODELS ) -- cgit