server: minor indent fix

This commit is contained in:
Alibek Omarov 2024-04-04 03:15:06 +03:00
parent 599a79f3a9
commit b44b52a093
1 changed files with 4 additions and 6 deletions

View File

@ -333,9 +333,7 @@ void CTriggerAutoBot::Think( void )
g_pDecayRules = (CDecayRules*)g_pGameRules; g_pDecayRules = (CDecayRules*)g_pGameRules;
if (g_pDecayRules->PlayersCount == 1) if (g_pDecayRules->PlayersCount == 1)
{ {
char cmd[40]; SERVER_COMMAND( "addbot\n" );
sprintf(cmd, "addbot\n" );
SERVER_COMMAND(cmd);
} }
UTIL_Remove( this ); UTIL_Remove( this );
@ -408,9 +406,9 @@ void CTriggerKicker::Think( void )
if (!g_pGameRules->IsCoOp()) if (!g_pGameRules->IsCoOp())
return; return;
char cmd[128]; char cmd[128];
sprintf(cmd, "kick \"%s\"\n", STRING(pPlayerToKick->pev->netname) ); snprintf( cmd, sizeof( cmd ), "kick \"%s\"\n", STRING( pPlayerToKick->pev->netname ));
SERVER_COMMAND(cmd); SERVER_COMMAND(cmd);
UTIL_Remove( this ); UTIL_Remove( this );
} }