source-engine/game/server/tf2/order_events.cpp
FluorescentCIAAfricanAmerican 3bf9df6b27 1
2020-04-22 12:56:21 -04:00

27 lines
721 B
C++

//========= 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 );
}
}