summaryrefslogtreecommitdiff
path: root/src/cgame
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgame')
-rw-r--r--src/cgame/cg_players.c2
-rw-r--r--src/cgame/cg_tutorial.c5
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 = &cent->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;