mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-08 01:39:36 +00:00
1
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
//========= 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 );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user