You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
721 B
26 lines
721 B
//========= Copyright Valve Corporation, All rights reserved. ============// |
|
// |
|
// Purpose: |
|
// |
|
// $NoKeywords: $ |
|
// |
|
//=============================================================================// |
|
|
|
|
|
#include "cbase.h" |
|
|
|
#include "order_events.h" |
|
#include "tf_team.h" |
|
|
|
//----------------------------------------------------------------------------- |
|
// Purpose: Fire an event for all teams telling them to update their orders |
|
//----------------------------------------------------------------------------- |
|
void GlobalOrderEvent( COrderEvent_Base *pOrder ) |
|
{ |
|
// Loop through the teams |
|
for ( int i = 0; i < GetNumberOfTeams(); i++ ) |
|
{ |
|
CTFTeam *pTeam = GetGlobalTFTeam( i ); |
|
pTeam->UpdateOrdersOnEvent( pOrder ); |
|
} |
|
}
|
|
|