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_WaterLODControl.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_WaterLODControl.cpp')
| -rw-r--r-- | mp/src/game/client/C_WaterLODControl.cpp | 120 |
1 files changed, 60 insertions, 60 deletions
diff --git a/mp/src/game/client/C_WaterLODControl.cpp b/mp/src/game/client/C_WaterLODControl.cpp index 4828571e..2e27ffb2 100644 --- a/mp/src/game/client/C_WaterLODControl.cpp +++ b/mp/src/game/client/C_WaterLODControl.cpp @@ -1,60 +1,60 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose: Water LOD control entity.
-//
-// $NoKeywords: $
-//=============================================================================//
-#include "cbase.h"
-#include "iviewrender.h"
-
-// memdbgon must be the last include file in a .cpp file!!!
-#include "tier0/memdbgon.h"
-
-//------------------------------------------------------------------------------
-// FIXME: This really should inherit from something more lightweight
-//------------------------------------------------------------------------------
-
-
-//------------------------------------------------------------------------------
-// Purpose : Water LOD control entity
-//------------------------------------------------------------------------------
-class C_WaterLODControl : public C_BaseEntity
-{
-public:
- DECLARE_CLASS( C_WaterLODControl, C_BaseEntity );
-
- DECLARE_CLIENTCLASS();
-
- void OnDataChanged(DataUpdateType_t updateType);
- bool ShouldDraw();
-
-private:
- float m_flCheapWaterStartDistance;
- float m_flCheapWaterEndDistance;
-};
-
-IMPLEMENT_CLIENTCLASS_DT(C_WaterLODControl, DT_WaterLODControl, CWaterLODControl)
- RecvPropFloat(RECVINFO(m_flCheapWaterStartDistance)),
- RecvPropFloat(RECVINFO(m_flCheapWaterEndDistance)),
-END_RECV_TABLE()
-
-
-//------------------------------------------------------------------------------
-// Purpose :
-// Input :
-// Output :
-//------------------------------------------------------------------------------
-void C_WaterLODControl::OnDataChanged(DataUpdateType_t updateType)
-{
- view->SetCheapWaterStartDistance( m_flCheapWaterStartDistance );
- view->SetCheapWaterEndDistance( m_flCheapWaterEndDistance );
-}
-
-//------------------------------------------------------------------------------
-// We don't draw...
-//------------------------------------------------------------------------------
-bool C_WaterLODControl::ShouldDraw()
-{
- return false;
-}
-
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: Water LOD control entity. +// +// $NoKeywords: $ +//=============================================================================// +#include "cbase.h" +#include "iviewrender.h" + +// memdbgon must be the last include file in a .cpp file!!! +#include "tier0/memdbgon.h" + +//------------------------------------------------------------------------------ +// FIXME: This really should inherit from something more lightweight +//------------------------------------------------------------------------------ + + +//------------------------------------------------------------------------------ +// Purpose : Water LOD control entity +//------------------------------------------------------------------------------ +class C_WaterLODControl : public C_BaseEntity +{ +public: + DECLARE_CLASS( C_WaterLODControl, C_BaseEntity ); + + DECLARE_CLIENTCLASS(); + + void OnDataChanged(DataUpdateType_t updateType); + bool ShouldDraw(); + +private: + float m_flCheapWaterStartDistance; + float m_flCheapWaterEndDistance; +}; + +IMPLEMENT_CLIENTCLASS_DT(C_WaterLODControl, DT_WaterLODControl, CWaterLODControl) + RecvPropFloat(RECVINFO(m_flCheapWaterStartDistance)), + RecvPropFloat(RECVINFO(m_flCheapWaterEndDistance)), +END_RECV_TABLE() + + +//------------------------------------------------------------------------------ +// Purpose : +// Input : +// Output : +//------------------------------------------------------------------------------ +void C_WaterLODControl::OnDataChanged(DataUpdateType_t updateType) +{ + view->SetCheapWaterStartDistance( m_flCheapWaterStartDistance ); + view->SetCheapWaterEndDistance( m_flCheapWaterEndDistance ); +} + +//------------------------------------------------------------------------------ +// We don't draw... +//------------------------------------------------------------------------------ +bool C_WaterLODControl::ShouldDraw() +{ + return false; +} + |