aboutsummaryrefslogtreecommitdiff
path: root/sp/src/game/server/env_texturetoggle.cpp
diff options
context:
space:
mode:
authorJørgen P. Tjernø <[email protected]>2013-12-02 19:31:46 -0800
committerJørgen P. Tjernø <[email protected]>2013-12-02 19:46:31 -0800
commitf56bb35301836e56582a575a75864392a0177875 (patch)
treede61ddd39de3e7df52759711950b4c288592f0dc /sp/src/game/server/env_texturetoggle.cpp
parentMark some more files as text. (diff)
downloadsource-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz
source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip
Fix line endings. WHAMMY.
Diffstat (limited to 'sp/src/game/server/env_texturetoggle.cpp')
-rw-r--r--sp/src/game/server/env_texturetoggle.cpp126
1 files changed, 63 insertions, 63 deletions
diff --git a/sp/src/game/server/env_texturetoggle.cpp b/sp/src/game/server/env_texturetoggle.cpp
index 21b6e52c..53ccbd5f 100644
--- a/sp/src/game/server/env_texturetoggle.cpp
+++ b/sp/src/game/server/env_texturetoggle.cpp
@@ -1,63 +1,63 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================//
-
-#include "cbase.h"
-
-// memdbgon must be the last include file in a .cpp file!!!
-#include "tier0/memdbgon.h"
-
-class CTextureToggle : public CPointEntity
-{
-public:
- DECLARE_CLASS( CTextureToggle, CPointEntity );
-
- void InputIncrementBrushTexIndex( inputdata_t &inputdata );
- void InputSetBrushTexIndex( inputdata_t &inputdata );
-
-private:
-
- DECLARE_DATADESC();
-};
-
-LINK_ENTITY_TO_CLASS( env_texturetoggle, CTextureToggle );
-
-BEGIN_DATADESC( CTextureToggle )
-
- DEFINE_INPUTFUNC( FIELD_VOID, "IncrementTextureIndex", InputIncrementBrushTexIndex ),
- DEFINE_INPUTFUNC( FIELD_INTEGER, "SetTextureIndex", InputSetBrushTexIndex ),
-
-END_DATADESC()
-
-//-----------------------------------------------------------------------------
-// Purpose:
-// Input : &inputdata -
-//-----------------------------------------------------------------------------
-void CTextureToggle::InputIncrementBrushTexIndex( inputdata_t& inputdata )
-{
- CBaseEntity *pEntity = gEntList.FindEntityByName( NULL, m_target );
-
- while( pEntity )
- {
- int iCurrentIndex = pEntity->GetTextureFrameIndex() + 1;
- pEntity->SetTextureFrameIndex( iCurrentIndex );
-
- pEntity = gEntList.FindEntityByName( pEntity, m_target );
- }
-}
-
-void CTextureToggle::InputSetBrushTexIndex( inputdata_t& inputdata )
-{
- CBaseEntity *pEntity = gEntList.FindEntityByName( NULL, m_target );
-
- while( pEntity )
- {
- int iData = inputdata.value.Int();
-
- pEntity->SetTextureFrameIndex( iData );
- pEntity = gEntList.FindEntityByName( pEntity, m_target );
- }
-}
-
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#include "cbase.h"
+
+// memdbgon must be the last include file in a .cpp file!!!
+#include "tier0/memdbgon.h"
+
+class CTextureToggle : public CPointEntity
+{
+public:
+ DECLARE_CLASS( CTextureToggle, CPointEntity );
+
+ void InputIncrementBrushTexIndex( inputdata_t &inputdata );
+ void InputSetBrushTexIndex( inputdata_t &inputdata );
+
+private:
+
+ DECLARE_DATADESC();
+};
+
+LINK_ENTITY_TO_CLASS( env_texturetoggle, CTextureToggle );
+
+BEGIN_DATADESC( CTextureToggle )
+
+ DEFINE_INPUTFUNC( FIELD_VOID, "IncrementTextureIndex", InputIncrementBrushTexIndex ),
+ DEFINE_INPUTFUNC( FIELD_INTEGER, "SetTextureIndex", InputSetBrushTexIndex ),
+
+END_DATADESC()
+
+//-----------------------------------------------------------------------------
+// Purpose:
+// Input : &inputdata -
+//-----------------------------------------------------------------------------
+void CTextureToggle::InputIncrementBrushTexIndex( inputdata_t& inputdata )
+{
+ CBaseEntity *pEntity = gEntList.FindEntityByName( NULL, m_target );
+
+ while( pEntity )
+ {
+ int iCurrentIndex = pEntity->GetTextureFrameIndex() + 1;
+ pEntity->SetTextureFrameIndex( iCurrentIndex );
+
+ pEntity = gEntList.FindEntityByName( pEntity, m_target );
+ }
+}
+
+void CTextureToggle::InputSetBrushTexIndex( inputdata_t& inputdata )
+{
+ CBaseEntity *pEntity = gEntList.FindEntityByName( NULL, m_target );
+
+ while( pEntity )
+ {
+ int iData = inputdata.value.Int();
+
+ pEntity->SetTextureFrameIndex( iData );
+ pEntity = gEntList.FindEntityByName( pEntity, m_target );
+ }
+}
+