From 1161e866f7a074c7c89a0447ee3712e6944513a3 Mon Sep 17 00:00:00 2001 From: "M. Kristall" Date: Sat, 3 Oct 2009 11:48:04 +0000 Subject: * (bug 3631) Macro safety for MIN() and MAX() (Ben Millwood) * (bug 3645) Lag correction field in server info menus is always empty (Ben Millwood) * (bug 3653) stack corruption in G_SendGameStat() (/dev/humancontroller) * (bug 3662) Players who fall of the edge of the world can block the spawn queue (/dev/humancontroller) * Remove unused argument to G_ClientNumberFromString() * Remove unused variables in G_admin_setlevel() * Remove a number of superfluous va()s * Shut up erroneous warnings about uninitialized variables --- src/cgame/cg_players.c | 2 +- src/cgame/cg_tutorial.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src/cgame') diff --git a/src/cgame/cg_players.c b/src/cgame/cg_players.c index 1cebf451..97324fa8 100644 --- a/src/cgame/cg_players.c +++ b/src/cgame/cg_players.c @@ -1867,7 +1867,7 @@ void CG_Player( centity_t *cent ) int clientNum; int renderfx; qboolean shadow = qfalse; - float shadowPlane; + float shadowPlane = 0.0f; entityState_t *es = ¢->currentState; class_t class = ( es->misc >> 8 ) & 0xFF; float scale; diff --git a/src/cgame/cg_tutorial.c b/src/cgame/cg_tutorial.c index 2de0af9d..4f4608a0 100644 --- a/src/cgame/cg_tutorial.c +++ b/src/cgame/cg_tutorial.c @@ -122,9 +122,8 @@ static const char *CG_KeyNameForCommand( const char *command ) } else { - Q_strncpyz( buffer, va( "\"%s\"", bindings[ i ].humanName ), - MAX_STRING_CHARS ); - Q_strcat( buffer, MAX_STRING_CHARS, " (unbound)" ); + Com_sprintf( buffer, MAX_STRING_CHARS, "\"%s\" (unbound)", + bindings[ i ].humanName ); } return buffer; -- cgit