diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /mp/src/game/client/c_func_occluder.cpp | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/game/client/c_func_occluder.cpp')
| -rw-r--r-- | mp/src/game/client/c_func_occluder.cpp | 102 |
1 files changed, 51 insertions, 51 deletions
diff --git a/mp/src/game/client/c_func_occluder.cpp b/mp/src/game/client/c_func_occluder.cpp index 26367820..b9c2f56f 100644 --- a/mp/src/game/client/c_func_occluder.cpp +++ b/mp/src/game/client/c_func_occluder.cpp @@ -1,51 +1,51 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//
-//=============================================================================//
-#include "cbase.h"
-
-// memdbgon must be the last include file in a .cpp file!!!
-#include "tier0/memdbgon.h"
-
-class C_FuncOccluder : public C_BaseEntity
-{
-public:
- DECLARE_CLIENTCLASS();
- DECLARE_CLASS( C_FuncOccluder, C_BaseEntity );
-
-// Overrides.
-public:
- virtual bool ShouldDraw();
- virtual int DrawModel( int flags );
- virtual void OnDataChanged( DataUpdateType_t updateType );
-
-private:
- int m_nOccluderIndex;
- bool m_bActive;
-};
-
-IMPLEMENT_CLIENTCLASS_DT( C_FuncOccluder, DT_FuncOccluder, CFuncOccluder )
- RecvPropBool( RECVINFO( m_bActive ) ),
- RecvPropInt( RECVINFO(m_nOccluderIndex) ),
-END_RECV_TABLE()
-
-
-void C_FuncOccluder::OnDataChanged( DataUpdateType_t updateType )
-{
- BaseClass::OnDataChanged( updateType );
- engine->ActivateOccluder( m_nOccluderIndex, m_bActive );
-}
-
-bool C_FuncOccluder::ShouldDraw()
-{
- return false;
-}
-
-int C_FuncOccluder::DrawModel( int flags )
-{
- Assert(0);
- return 0;
-}
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +// +//=============================================================================// +#include "cbase.h" + +// memdbgon must be the last include file in a .cpp file!!! +#include "tier0/memdbgon.h" + +class C_FuncOccluder : public C_BaseEntity +{ +public: + DECLARE_CLIENTCLASS(); + DECLARE_CLASS( C_FuncOccluder, C_BaseEntity ); + +// Overrides. +public: + virtual bool ShouldDraw(); + virtual int DrawModel( int flags ); + virtual void OnDataChanged( DataUpdateType_t updateType ); + +private: + int m_nOccluderIndex; + bool m_bActive; +}; + +IMPLEMENT_CLIENTCLASS_DT( C_FuncOccluder, DT_FuncOccluder, CFuncOccluder ) + RecvPropBool( RECVINFO( m_bActive ) ), + RecvPropInt( RECVINFO(m_nOccluderIndex) ), +END_RECV_TABLE() + + +void C_FuncOccluder::OnDataChanged( DataUpdateType_t updateType ) +{ + BaseClass::OnDataChanged( updateType ); + engine->ActivateOccluder( m_nOccluderIndex, m_bActive ); +} + +bool C_FuncOccluder::ShouldDraw() +{ + return false; +} + +int C_FuncOccluder::DrawModel( int flags ) +{ + Assert(0); + return 0; +} |