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
565 B
26 lines
565 B
//========= Copyright Valve Corporation, All rights reserved. ============// |
|
// |
|
// Purpose: |
|
// |
|
// $NoKeywords: $ |
|
//=============================================================================// |
|
|
|
#include "cbase.h" |
|
|
|
#include "order_player.h" |
|
|
|
|
|
IMPLEMENT_SERVERCLASS_ST( COrderPlayer, DT_OrderPlayer ) |
|
END_SEND_TABLE() |
|
|
|
|
|
|
|
bool COrderPlayer::UpdateOnEvent( COrderEvent_Base *pEvent ) |
|
{ |
|
// All player orders give up if the player disconnects |
|
if ( pEvent->GetType() == ORDER_EVENT_PLAYER_DISCONNECTED ) |
|
return true; |
|
|
|
return BaseClass::UpdateOnEvent( pEvent ); |
|
} |
|
|
|
|