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:
@ -108,7 +108,7 @@ IMPLEMENT_NETWORKCLASS_ALIASED( SDKGameRulesProxy, DT_SDKGameRulesProxy )
|
||||
// --------------------------------------------------------------------------------------------------- //
|
||||
|
||||
// NOTE: the indices here must match TEAM_TERRORIST, TEAM_CT, TEAM_SPECTATOR, etc.
|
||||
char *sTeamNames[] =
|
||||
const char *sTeamNames[] =
|
||||
{
|
||||
"Unassigned",
|
||||
"Spectator",
|
||||
@ -134,7 +134,7 @@ IMPLEMENT_NETWORKCLASS_ALIASED( SDKGameRulesProxy, DT_SDKGameRulesProxy )
|
||||
CSDKGameRules::CSDKGameRules()
|
||||
{
|
||||
// Create the team managers
|
||||
for ( int i = 0; i < ARRAYSIZE( sTeamNames ); i++ )
|
||||
for ( int i = 0; i < (int)ARRAYSIZE( sTeamNames ); i++ )
|
||||
{
|
||||
CTeam *pTeam = static_cast<CTeam*>(CreateEntityByName( "sdk_team_manager" ));
|
||||
pTeam->Init( sTeamNames[i], i );
|
||||
|
Reference in New Issue
Block a user