summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2009-10-09 08:04:10 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:44 +0000
commitd28ad7411a91881d168d45d0846adf80a579a02f (patch)
tree8e594dc9e2d64122cf0f4f91d69600e99e151a32 /src
parent5d14c5b22672683dfd762e2c61f514ef8ef1aacd (diff)
* Fix uninitialized variable usage gcc did not warn me about before
* Fix sudden death votes (thanks Rezyn)
Diffstat (limited to 'src')
-rw-r--r--src/game/g_admin.c2
-rw-r--r--src/game/g_svcmds.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index dc41e700..f0206012 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -2339,7 +2339,7 @@ qboolean G_admin_showbans( gentity_t *ent, int skiparg )
}
else
{
- for( i = filter[ i ] == '-'; filter[ i ] && isdigit( filter[ i ] ); i++ );
+ for( i = filter[ 0 ] == '-'; filter[ i ] && isdigit( filter[ i ] ); i++ );
if( filter[ i ] )
G_SanitiseString( filter, name_match, sizeof( name_match ) );
else
diff --git a/src/game/g_svcmds.c b/src/game/g_svcmds.c
index 75d757d1..818cdfc7 100644
--- a/src/game/g_svcmds.c
+++ b/src/game/g_svcmds.c
@@ -513,7 +513,7 @@ static void Svcmd_SuddenDeath_f( void )
{
char secs[ 5 ];
int offset;
- trap_Argv( 0, secs, sizeof( secs ) );
+ trap_Argv( 1, secs, sizeof( secs ) );
offset = atoi( secs );
level.suddenDeathBeginTime = level.time - level.startTime + offset * 1000;