From f44fffabb6f7e8dcf701adbd6d379cd4620a7f37 Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Sat, 3 Oct 2009 12:32:56 +0000 Subject: * (bug 3964) Fix votedisplaystrings printing as blank in some circumstances (thanks Rezyn for 1/2 of this fix) --- src/cgame/cg_main.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/cgame') diff --git a/src/cgame/cg_main.c b/src/cgame/cg_main.c index 1844cdf0..6fe7655d 100644 --- a/src/cgame/cg_main.c +++ b/src/cgame/cg_main.c @@ -1788,6 +1788,15 @@ void CG_Init( int serverMessageNum, int serverCommandSequence, int clientNum ) // get the gamestate from the client system trap_GetGameState( &cgs.gameState ); + // copy vote display strings so they don't show up blank if we see + // the same one directly after connecting + Q_strncpyz( cgs.voteString, CG_ConfigString( CS_VOTE_STRING ), + sizeof( cgs.voteString ) ); + Q_strncpyz( cgs.teamVoteString[ 0 ], CG_ConfigString( CS_TEAMVOTE_STRING + 0 ), + sizeof( cgs.teamVoteString[ 0 ] ) ); + Q_strncpyz( cgs.teamVoteString[ 1 ], CG_ConfigString( CS_TEAMVOTE_STRING + 1 ), + sizeof( cgs.teamVoteString[ 1 ] ) ); + // check version s = CG_ConfigString( CS_GAME_VERSION ); -- cgit