From f56bb35301836e56582a575a75864392a0177875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20P=2E=20Tjern=C3=B8?= Date: Mon, 2 Dec 2013 19:31:46 -0800 Subject: Fix line endings. WHAMMY. --- mp/src/game/server/base_transmit_proxy.cpp | 120 ++++++++++++++--------------- 1 file changed, 60 insertions(+), 60 deletions(-) (limited to 'mp/src/game/server/base_transmit_proxy.cpp') diff --git a/mp/src/game/server/base_transmit_proxy.cpp b/mp/src/game/server/base_transmit_proxy.cpp index b0151eb8..4832af8d 100644 --- a/mp/src/game/server/base_transmit_proxy.cpp +++ b/mp/src/game/server/base_transmit_proxy.cpp @@ -1,60 +1,60 @@ -//========= Copyright Valve Corporation, All rights reserved. ============// -// -// Purpose: -// -//=============================================================================// - -#include "cbase.h" -#include "base_transmit_proxy.h" - -// memdbgon must be the last include file in a .cpp file!!! -#include "tier0/memdbgon.h" - -CBaseTransmitProxy::CBaseTransmitProxy( CBaseEntity *pEnt ) -{ - m_hEnt = pEnt; - m_refCount = 0; -} - - -CBaseTransmitProxy::~CBaseTransmitProxy() -{ - // Unlink from our parent entity. - if ( m_hEnt ) - { - m_refCount = 0xFFFF; // Prevent us from deleting ourselves again. - // m_hEnt->NetworkProp()->SetTransmitProxy( NULL ); - } -} - - -int CBaseTransmitProxy::ShouldTransmit( const CCheckTransmitInfo *pInfo, int nPrevShouldTransmitResult ) -{ - // Anyone implementing a transmit proxy should override this since that's the point!! - Assert( false ); - return FL_EDICT_DONTSEND; -} - - -void CBaseTransmitProxy::AddRef() -{ - m_refCount++; -} - - -void CBaseTransmitProxy::Release() -{ - if ( m_refCount == 0xFFFF ) - { - // This means we are inside our destructor already, so we don't want to do anything here. - } - else if ( m_refCount <= 1 ) - { - delete this; - } - else - { - --m_refCount; - } -} - +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#include "cbase.h" +#include "base_transmit_proxy.h" + +// memdbgon must be the last include file in a .cpp file!!! +#include "tier0/memdbgon.h" + +CBaseTransmitProxy::CBaseTransmitProxy( CBaseEntity *pEnt ) +{ + m_hEnt = pEnt; + m_refCount = 0; +} + + +CBaseTransmitProxy::~CBaseTransmitProxy() +{ + // Unlink from our parent entity. + if ( m_hEnt ) + { + m_refCount = 0xFFFF; // Prevent us from deleting ourselves again. + // m_hEnt->NetworkProp()->SetTransmitProxy( NULL ); + } +} + + +int CBaseTransmitProxy::ShouldTransmit( const CCheckTransmitInfo *pInfo, int nPrevShouldTransmitResult ) +{ + // Anyone implementing a transmit proxy should override this since that's the point!! + Assert( false ); + return FL_EDICT_DONTSEND; +} + + +void CBaseTransmitProxy::AddRef() +{ + m_refCount++; +} + + +void CBaseTransmitProxy::Release() +{ + if ( m_refCount == 0xFFFF ) + { + // This means we are inside our destructor already, so we don't want to do anything here. + } + else if ( m_refCount <= 1 ) + { + delete this; + } + else + { + --m_refCount; + } +} + -- cgit v1.2.3