1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-20 12:36:05 +08:00

Modified SDK for GCC 4.2

This commit is contained in:
Scott Ehlert
2008-09-15 02:50:57 -05:00
parent 86f3bc8a60
commit 7ff7f366d5
696 changed files with 23423 additions and 22634 deletions

View File

@ -116,7 +116,7 @@ CBasePlayer *BotPutInServer( bool bFrozen )
}
// Handler for the "bot" command.
CON_COMMAND_F( "bot_add", "Add a bot.", FCVAR_CHEAT )
CON_COMMAND_F( bot_add, "Add a bot.", FCVAR_CHEAT )
{
// Look at -count.
int count = args.FindArgInt( "-count", 1 );
@ -249,7 +249,7 @@ void Bot_UpdateDirection( CSDKBot *pBot )
float angledelta = 15.0;
QAngle angle;
int maxtries = (int)360.0/angledelta;
int maxtries = (int)(360.0 / angledelta);
if ( pBot->m_bLastTurnToRight )
{
@ -340,7 +340,9 @@ void Bot_HandleSendCmd( CSDKBot *pBot )
if ( strlen( bot_sendcmd.GetString() ) > 0 )
{
//send the cmd from this bot
pBot->ClientCommand( bot_sendcmd.GetString() );
CCommand args;
args.Tokenize( bot_sendcmd.GetString() );
pBot->ClientCommand( args );
bot_sendcmd.SetValue("");
}