aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/client/c_test_proxytoggle.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 /mp/src/game/client/c_test_proxytoggle.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 'mp/src/game/client/c_test_proxytoggle.cpp')
-rw-r--r--mp/src/game/client/c_test_proxytoggle.cpp160
1 files changed, 80 insertions, 80 deletions
diff --git a/mp/src/game/client/c_test_proxytoggle.cpp b/mp/src/game/client/c_test_proxytoggle.cpp
index 92e17d8a..45405e10 100644
--- a/mp/src/game/client/c_test_proxytoggle.cpp
+++ b/mp/src/game/client/c_test_proxytoggle.cpp
@@ -1,80 +1,80 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//=============================================================================//
-#include "cbase.h"
-#include "c_baseentity.h"
-
-// memdbgon must be the last include file in a .cpp file!!!
-#include "tier0/memdbgon.h"
-
-class C_Test_ProxyToggle_Networkable;
-static C_Test_ProxyToggle_Networkable *g_pTestObj = 0;
-
-
-// ---------------------------------------------------------------------------------------- //
-// C_Test_ProxyToggle_Networkable
-// ---------------------------------------------------------------------------------------- //
-
-class C_Test_ProxyToggle_Networkable : public C_BaseEntity
-{
-public:
- DECLARE_CLASS( C_Test_ProxyToggle_Networkable, C_BaseEntity );
- DECLARE_CLIENTCLASS();
-
- C_Test_ProxyToggle_Networkable()
- {
- g_pTestObj = this;
- }
-
- ~C_Test_ProxyToggle_Networkable()
- {
- g_pTestObj = 0;
- }
-
- int m_WithProxy;
-};
-
-
-// ---------------------------------------------------------------------------------------- //
-// Datatables.
-// ---------------------------------------------------------------------------------------- //
-
-BEGIN_RECV_TABLE_NOBASE( C_Test_ProxyToggle_Networkable, DT_ProxyToggle_ProxiedData )
- RecvPropInt( RECVINFO( m_WithProxy ) )
-END_RECV_TABLE()
-
-IMPLEMENT_CLIENTCLASS_DT( C_Test_ProxyToggle_Networkable, DT_ProxyToggle, CTest_ProxyToggle_Networkable )
- RecvPropDataTable( "blah", 0, 0, &REFERENCE_RECV_TABLE( DT_ProxyToggle_ProxiedData ) )
-END_RECV_TABLE()
-
-
-
-// ---------------------------------------------------------------------------------------- //
-// Console commands.
-// ---------------------------------------------------------------------------------------- //
-
-// The engine uses this to get the current value.
-CON_COMMAND_F( Test_ProxyToggle_EnsureValue, "Test_ProxyToggle_EnsureValue", FCVAR_CHEAT )
-{
- if ( args.ArgC() < 2 )
- {
- Error( "Test_ProxyToggle_EnsureValue: requires value parameter." );
- }
- else if ( !g_pTestObj )
- {
- Error( "Test_ProxyToggle_EnsureValue: object doesn't exist on the client." );
- }
-
- int wantedValue = atoi( args[ 1 ] );
- if ( g_pTestObj->m_WithProxy != wantedValue )
- {
- Error( "Test_ProxyToggle_EnsureValue: value (%d) doesn't match wanted value (%d).", g_pTestObj->m_WithProxy, wantedValue );
- }
-}
-
-
-
-
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+#include "cbase.h"
+#include "c_baseentity.h"
+
+// memdbgon must be the last include file in a .cpp file!!!
+#include "tier0/memdbgon.h"
+
+class C_Test_ProxyToggle_Networkable;
+static C_Test_ProxyToggle_Networkable *g_pTestObj = 0;
+
+
+// ---------------------------------------------------------------------------------------- //
+// C_Test_ProxyToggle_Networkable
+// ---------------------------------------------------------------------------------------- //
+
+class C_Test_ProxyToggle_Networkable : public C_BaseEntity
+{
+public:
+ DECLARE_CLASS( C_Test_ProxyToggle_Networkable, C_BaseEntity );
+ DECLARE_CLIENTCLASS();
+
+ C_Test_ProxyToggle_Networkable()
+ {
+ g_pTestObj = this;
+ }
+
+ ~C_Test_ProxyToggle_Networkable()
+ {
+ g_pTestObj = 0;
+ }
+
+ int m_WithProxy;
+};
+
+
+// ---------------------------------------------------------------------------------------- //
+// Datatables.
+// ---------------------------------------------------------------------------------------- //
+
+BEGIN_RECV_TABLE_NOBASE( C_Test_ProxyToggle_Networkable, DT_ProxyToggle_ProxiedData )
+ RecvPropInt( RECVINFO( m_WithProxy ) )
+END_RECV_TABLE()
+
+IMPLEMENT_CLIENTCLASS_DT( C_Test_ProxyToggle_Networkable, DT_ProxyToggle, CTest_ProxyToggle_Networkable )
+ RecvPropDataTable( "blah", 0, 0, &REFERENCE_RECV_TABLE( DT_ProxyToggle_ProxiedData ) )
+END_RECV_TABLE()
+
+
+
+// ---------------------------------------------------------------------------------------- //
+// Console commands.
+// ---------------------------------------------------------------------------------------- //
+
+// The engine uses this to get the current value.
+CON_COMMAND_F( Test_ProxyToggle_EnsureValue, "Test_ProxyToggle_EnsureValue", FCVAR_CHEAT )
+{
+ if ( args.ArgC() < 2 )
+ {
+ Error( "Test_ProxyToggle_EnsureValue: requires value parameter." );
+ }
+ else if ( !g_pTestObj )
+ {
+ Error( "Test_ProxyToggle_EnsureValue: object doesn't exist on the client." );
+ }
+
+ int wantedValue = atoi( args[ 1 ] );
+ if ( g_pTestObj->m_WithProxy != wantedValue )
+ {
+ Error( "Test_ProxyToggle_EnsureValue: value (%d) doesn't match wanted value (%d).", g_pTestObj->m_WithProxy, wantedValue );
+ }
+}
+
+
+
+