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 /sp/src/game/client/sdk/sdk_prediction.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 'sp/src/game/client/sdk/sdk_prediction.cpp')
| -rw-r--r-- | sp/src/game/client/sdk/sdk_prediction.cpp | 106 |
1 files changed, 53 insertions, 53 deletions
diff --git a/sp/src/game/client/sdk/sdk_prediction.cpp b/sp/src/game/client/sdk/sdk_prediction.cpp index eeb668ec..c72a9908 100644 --- a/sp/src/game/client/sdk/sdk_prediction.cpp +++ b/sp/src/game/client/sdk/sdk_prediction.cpp @@ -1,53 +1,53 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//=============================================================================//
-#include "cbase.h"
-#include "prediction.h"
-#include "c_baseplayer.h"
-#include "igamemovement.h"
-
-
-static CMoveData g_MoveData;
-CMoveData *g_pMoveData = &g_MoveData;
-
-
-class CSDKPrediction : public CPrediction
-{
-DECLARE_CLASS( CSDKPrediction, CPrediction );
-
-public:
- virtual void SetupMove( C_BasePlayer *player, CUserCmd *ucmd, IMoveHelper *pHelper, CMoveData *move );
- virtual void FinishMove( C_BasePlayer *player, CUserCmd *ucmd, CMoveData *move );
-};
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-void CSDKPrediction::SetupMove( C_BasePlayer *player, CUserCmd *ucmd, IMoveHelper *pHelper,
- CMoveData *move )
-{
- // Call the default SetupMove code.
- BaseClass::SetupMove( player, ucmd, pHelper, move );
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-void CSDKPrediction::FinishMove( C_BasePlayer *player, CUserCmd *ucmd, CMoveData *move )
-{
- // Call the default FinishMove code.
- BaseClass::FinishMove( player, ucmd, move );
-}
-
-
-// Expose interface to engine
-// Expose interface to engine
-static CSDKPrediction g_Prediction;
-
-EXPOSE_SINGLE_INTERFACE_GLOBALVAR( CSDKPrediction, IPrediction, VCLIENT_PREDICTION_INTERFACE_VERSION, g_Prediction );
-
-CPrediction *prediction = &g_Prediction;
-
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// +#include "cbase.h" +#include "prediction.h" +#include "c_baseplayer.h" +#include "igamemovement.h" + + +static CMoveData g_MoveData; +CMoveData *g_pMoveData = &g_MoveData; + + +class CSDKPrediction : public CPrediction +{ +DECLARE_CLASS( CSDKPrediction, CPrediction ); + +public: + virtual void SetupMove( C_BasePlayer *player, CUserCmd *ucmd, IMoveHelper *pHelper, CMoveData *move ); + virtual void FinishMove( C_BasePlayer *player, CUserCmd *ucmd, CMoveData *move ); +}; + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +void CSDKPrediction::SetupMove( C_BasePlayer *player, CUserCmd *ucmd, IMoveHelper *pHelper, + CMoveData *move ) +{ + // Call the default SetupMove code. + BaseClass::SetupMove( player, ucmd, pHelper, move ); +} + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +void CSDKPrediction::FinishMove( C_BasePlayer *player, CUserCmd *ucmd, CMoveData *move ) +{ + // Call the default FinishMove code. + BaseClass::FinishMove( player, ucmd, move ); +} + + +// Expose interface to engine +// Expose interface to engine +static CSDKPrediction g_Prediction; + +EXPOSE_SINGLE_INTERFACE_GLOBALVAR( CSDKPrediction, IPrediction, VCLIENT_PREDICTION_INTERFACE_VERSION, g_Prediction ); + +CPrediction *prediction = &g_Prediction; + |