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/server/intermission.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/server/intermission.cpp')
| -rw-r--r-- | mp/src/game/server/intermission.cpp | 104 |
1 files changed, 52 insertions, 52 deletions
diff --git a/mp/src/game/server/intermission.cpp b/mp/src/game/server/intermission.cpp index 6a585518..76cc801d 100644 --- a/mp/src/game/server/intermission.cpp +++ b/mp/src/game/server/intermission.cpp @@ -1,52 +1,52 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $Workfile: $
-// $Date: $
-// $NoKeywords: $
-//=============================================================================//
-#include "cbase.h"
-#include "entitylist.h"
-
-// memdbgon must be the last include file in a .cpp file!!!
-#include "tier0/memdbgon.h"
-
-//=========================================================
-// Multiplayer intermission spots.
-//=========================================================
-class CInfoIntermission:public CPointEntity
-{
-public:
- DECLARE_CLASS( CInfoIntermission, CPointEntity );
-
- void Spawn( void );
- void Think( void );
-};
-
-void CInfoIntermission::Spawn( void )
-{
- SetSolid( SOLID_NONE );
- AddEffects( EF_NODRAW );
- SetLocalAngles( vec3_angle );
- SetNextThink( gpGlobals->curtime + 2 );// let targets spawn !
-}
-
-void CInfoIntermission::Think ( void )
-{
- CBaseEntity *pTarget;
-
- // find my target
- pTarget = gEntList.FindEntityByName( NULL, m_target );
-
- if ( pTarget )
- {
- Vector dir = pTarget->GetLocalOrigin() - GetLocalOrigin();
- VectorNormalize( dir );
- QAngle angles;
- VectorAngles( dir, angles );
- SetLocalAngles( angles );
- }
-}
-
-LINK_ENTITY_TO_CLASS( info_intermission, CInfoIntermission );
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $Workfile: $ +// $Date: $ +// $NoKeywords: $ +//=============================================================================// +#include "cbase.h" +#include "entitylist.h" + +// memdbgon must be the last include file in a .cpp file!!! +#include "tier0/memdbgon.h" + +//========================================================= +// Multiplayer intermission spots. +//========================================================= +class CInfoIntermission:public CPointEntity +{ +public: + DECLARE_CLASS( CInfoIntermission, CPointEntity ); + + void Spawn( void ); + void Think( void ); +}; + +void CInfoIntermission::Spawn( void ) +{ + SetSolid( SOLID_NONE ); + AddEffects( EF_NODRAW ); + SetLocalAngles( vec3_angle ); + SetNextThink( gpGlobals->curtime + 2 );// let targets spawn ! +} + +void CInfoIntermission::Think ( void ) +{ + CBaseEntity *pTarget; + + // find my target + pTarget = gEntList.FindEntityByName( NULL, m_target ); + + if ( pTarget ) + { + Vector dir = pTarget->GetLocalOrigin() - GetLocalOrigin(); + VectorNormalize( dir ); + QAngle angles; + VectorAngles( dir, angles ); + SetLocalAngles( angles ); + } +} + +LINK_ENTITY_TO_CLASS( info_intermission, CInfoIntermission ); |