diff options
author | M. Kristall <mkpdev@gmail.com> | 2009-10-03 11:48:04 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:15:22 +0000 |
commit | 1161e866f7a074c7c89a0447ee3712e6944513a3 (patch) | |
tree | 3feeec7b0dd0f2d9cc67595dace9c08f0794f32f /src/cgame | |
parent | a5c0d84f64a2687ff4008c129800706834209168 (diff) |
* (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
Diffstat (limited to 'src/cgame')
-rw-r--r-- | src/cgame/cg_players.c | 2 | ||||
-rw-r--r-- | src/cgame/cg_tutorial.c | 5 |
2 files changed, 3 insertions, 4 deletions
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; |