diff options
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r-- | src/game/g_cmds.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index e9052b05..00302fc1 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -585,7 +585,7 @@ void Cmd_Team_f( gentity_t *ent ) { trap_SendServerCommand( ent-g_entities, "print \"Alien team has been ^1LOCKED\n\"" ); - return; + return; } else if( level.humanTeamLocked ) force = qtrue; @@ -604,7 +604,7 @@ void Cmd_Team_f( gentity_t *ent ) { trap_SendServerCommand( ent-g_entities, "print \"Human team has been ^1LOCKED\n\"" ); - return; + return; } else if( level.alienTeamLocked ) force = qtrue; @@ -790,7 +790,7 @@ static void Cmd_Say_f( gentity_t *ent ) // support parsing /a out of say text for the same reason if( !Q_stricmpn( args, "say /a ", 7 ) || - !Q_stricmpn( args, "say_team /a ", 12 ) ) + !Q_stricmpn( args, "say_team /a ", 12 ) ) { Cmd_AdminMessage_f( ent ); return; @@ -864,7 +864,7 @@ void Cmd_VSay_f( gentity_t *ent ) trap_Argv( 0, arg, sizeof( arg ) ); if( trap_Argc( ) < 2 ) { - trap_SendServerCommand( ent-g_entities, va( + trap_SendServerCommand( ent-g_entities, va( "print \"usage: %s command [text] \n\"", arg ) ); return; } @@ -876,7 +876,7 @@ void Cmd_VSay_f( gentity_t *ent ) } if( !g_voiceChats.integer ) { - trap_SendServerCommand( ent-g_entities, va( + trap_SendServerCommand( ent-g_entities, va( "print \"%s: voice system administratively disabled on this server\n\"", arg ) ); return; @@ -890,22 +890,22 @@ void Cmd_VSay_f( gentity_t *ent ) else return; Q_strncpyz( vsay, arg, sizeof( vsay ) ); - + if( ent->client->pers.voice[ 0 ] ) Q_strncpyz( voiceName, ent->client->pers.voice, sizeof( voiceName ) ); voice = BG_VoiceByName( level.voices, voiceName ); if( !voice ) { - trap_SendServerCommand( ent-g_entities, va( + trap_SendServerCommand( ent-g_entities, va( "print \"%s: voice '%s' not found\n\"", vsay, voiceName ) ); return; } - + trap_Argv( 1, voiceCmd, sizeof( voiceCmd ) ) ; cmd = BG_VoiceCmdFind( voice->cmds, voiceCmd, &cmdNum ); if( !cmd ) { - trap_SendServerCommand( ent-g_entities, va( + trap_SendServerCommand( ent-g_entities, va( "print \"%s: command '%s' not found in voice '%s'\n\"", vsay, voiceCmd, voiceName ) ); return; @@ -923,20 +923,20 @@ void Cmd_VSay_f( gentity_t *ent ) &trackNum ); if( !track ) { - trap_SendServerCommand( ent-g_entities, va( + trap_SendServerCommand( ent-g_entities, va( "print \"%s: no available track for command '%s', team %d, " "class %d, weapon %d, and enthusiasm %d in voice '%s'\n\"", vsay, voiceCmd, ent->client->pers.teamSelection, ent->client->pers.classSelection, weapon, (int)ent->client->voiceEnthusiasm, voiceName ) ); - return; + return; } if( !Q_stricmp( ent->client->lastVoiceCmd, cmd->cmd ) ) ent->client->voiceEnthusiasm++; Q_strncpyz( ent->client->lastVoiceCmd, cmd->cmd, - sizeof( ent->client->lastVoiceCmd ) ); + sizeof( ent->client->lastVoiceCmd ) ); // optional user supplied text trap_Argv( 2, arg, sizeof( arg ) ); @@ -956,7 +956,7 @@ void Cmd_VSay_f( gentity_t *ent ) break; default: break; - } + } } /* @@ -3371,7 +3371,7 @@ void Cmd_AdminMessage_f( gentity_t *ent ) ent->client->pers.netname ); } - // Skip say/say_team if this was used from one of those + // Skip say/say_team if this was used from one of those G_SayArgv( 0, cmd, sizeof( cmd ) ); if( !Q_stricmp( cmd, "say" ) || !Q_stricmp( cmd, "say_team" ) ) { |