From e16ea21dc8a710237ade8413207f58d403c616a3 Mon Sep 17 00:00:00 2001 From: Joe Ludwig Date: Wed, 17 Jul 2013 18:26:59 -0700 Subject: * Added support for building shaders in your mod * Added nav mesh support * fixed many warnings and misc bugs * Fixed the create*projects scripts in mp * Added a bunch of stuff to .gitignore --- mp/src/game/server/team_train_watcher.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'mp/src/game/server/team_train_watcher.cpp') diff --git a/mp/src/game/server/team_train_watcher.cpp b/mp/src/game/server/team_train_watcher.cpp index 27d7a15c..cf6631fb 100644 --- a/mp/src/game/server/team_train_watcher.cpp +++ b/mp/src/game/server/team_train_watcher.cpp @@ -819,17 +819,15 @@ void CTeamTrainWatcher::WatcherActivate( void ) { if ( m_hTrain ) { - CTriggerAreaCapture *pArea = dynamic_cast( gEntList.FindEntityByClassname( NULL, "trigger_capture_area" ) ); - while( pArea ) + for ( int i=0; i( ITriggerAreaCaptureAutoList::AutoList()[i] ); if ( pArea->GetParent() == m_hTrain.Get() ) { // this is the capture area we care about, so let it know that we want updates on the capture numbers pArea->SetTrainWatcher( this ); break; } - - pArea = dynamic_cast( gEntList.FindEntityByClassname( pArea, "trigger_capture_area" ) ); } } -- cgit v1.2.3