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_env_fog_controller.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_env_fog_controller.cpp')
| -rw-r--r-- | mp/src/game/client/c_env_fog_controller.cpp | 92 |
1 files changed, 46 insertions, 46 deletions
diff --git a/mp/src/game/client/c_env_fog_controller.cpp b/mp/src/game/client/c_env_fog_controller.cpp index b51a3c21..f890fb12 100644 --- a/mp/src/game/client/c_env_fog_controller.cpp +++ b/mp/src/game/client/c_env_fog_controller.cpp @@ -1,46 +1,46 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// An entity that allows level designer control over the fog parameters.
-//
-//=============================================================================
-
-#include "cbase.h"
-#include "c_env_fog_controller.h"
-
-// memdbgon must be the last include file in a .cpp file!!!
-#include "tier0/memdbgon.h"
-
-IMPLEMENT_NETWORKCLASS_ALIASED( FogController, DT_FogController )
-
-//-----------------------------------------------------------------------------
-// Datatable
-//-----------------------------------------------------------------------------
-BEGIN_NETWORK_TABLE_NOBASE( CFogController, DT_FogController )
- // fog data
- RecvPropInt( RECVINFO( m_fog.enable ) ),
- RecvPropInt( RECVINFO( m_fog.blend ) ),
- RecvPropVector( RECVINFO( m_fog.dirPrimary ) ),
- RecvPropInt( RECVINFO( m_fog.colorPrimary ) ),
- RecvPropInt( RECVINFO( m_fog.colorSecondary ) ),
- RecvPropFloat( RECVINFO( m_fog.start ) ),
- RecvPropFloat( RECVINFO( m_fog.end ) ),
- RecvPropFloat( RECVINFO( m_fog.farz ) ),
- RecvPropFloat( RECVINFO( m_fog.maxdensity ) ),
-
- RecvPropInt( RECVINFO( m_fog.colorPrimaryLerpTo ) ),
- RecvPropInt( RECVINFO( m_fog.colorSecondaryLerpTo ) ),
- RecvPropFloat( RECVINFO( m_fog.startLerpTo ) ),
- RecvPropFloat( RECVINFO( m_fog.endLerpTo ) ),
- RecvPropFloat( RECVINFO( m_fog.lerptime ) ),
- RecvPropFloat( RECVINFO( m_fog.duration ) ),
-END_NETWORK_TABLE()
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-C_FogController::C_FogController()
-{
- // Make sure that old maps without fog fields don't get wacked out fog values.
- m_fog.enable = false;
- m_fog.maxdensity = 1.0f;
-}
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// An entity that allows level designer control over the fog parameters. +// +//============================================================================= + +#include "cbase.h" +#include "c_env_fog_controller.h" + +// memdbgon must be the last include file in a .cpp file!!! +#include "tier0/memdbgon.h" + +IMPLEMENT_NETWORKCLASS_ALIASED( FogController, DT_FogController ) + +//----------------------------------------------------------------------------- +// Datatable +//----------------------------------------------------------------------------- +BEGIN_NETWORK_TABLE_NOBASE( CFogController, DT_FogController ) + // fog data + RecvPropInt( RECVINFO( m_fog.enable ) ), + RecvPropInt( RECVINFO( m_fog.blend ) ), + RecvPropVector( RECVINFO( m_fog.dirPrimary ) ), + RecvPropInt( RECVINFO( m_fog.colorPrimary ) ), + RecvPropInt( RECVINFO( m_fog.colorSecondary ) ), + RecvPropFloat( RECVINFO( m_fog.start ) ), + RecvPropFloat( RECVINFO( m_fog.end ) ), + RecvPropFloat( RECVINFO( m_fog.farz ) ), + RecvPropFloat( RECVINFO( m_fog.maxdensity ) ), + + RecvPropInt( RECVINFO( m_fog.colorPrimaryLerpTo ) ), + RecvPropInt( RECVINFO( m_fog.colorSecondaryLerpTo ) ), + RecvPropFloat( RECVINFO( m_fog.startLerpTo ) ), + RecvPropFloat( RECVINFO( m_fog.endLerpTo ) ), + RecvPropFloat( RECVINFO( m_fog.lerptime ) ), + RecvPropFloat( RECVINFO( m_fog.duration ) ), +END_NETWORK_TABLE() + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +C_FogController::C_FogController() +{ + // Make sure that old maps without fog fields don't get wacked out fog values. + m_fog.enable = false; + m_fog.maxdensity = 1.0f; +} |