diff options
| author | Narendra Umate <[email protected]> | 2013-12-02 23:36:05 -0800 |
|---|---|---|
| committer | Narendra Umate <[email protected]> | 2013-12-02 23:36:05 -0800 |
| commit | 8737f191f3b59f001a77bf6c08091109211c1c9f (patch) | |
| tree | dbbf05c004d9b026f2c1f23f06600fe0add82c36 /mp/src/game/server/movie_explosion.cpp | |
| parent | Update .gitignore. (diff) | |
| parent | Make .xcconfigs text files too. (diff) | |
| download | source-sdk-2013-8737f191f3b59f001a77bf6c08091109211c1c9f.tar.xz source-sdk-2013-8737f191f3b59f001a77bf6c08091109211c1c9f.zip | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'mp/src/game/server/movie_explosion.cpp')
| -rw-r--r-- | mp/src/game/server/movie_explosion.cpp | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/mp/src/game/server/movie_explosion.cpp b/mp/src/game/server/movie_explosion.cpp index 58e86f57..d3a86d5c 100644 --- a/mp/src/game/server/movie_explosion.cpp +++ b/mp/src/game/server/movie_explosion.cpp @@ -1,44 +1,44 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//
-//=============================================================================//
-#include "cbase.h"
-#include "movie_explosion.h"
-
-// memdbgon must be the last include file in a .cpp file!!!
-#include "tier0/memdbgon.h"
-
-#define MOVIEEXPLOSION_ENTITYNAME "env_movieexplosion"
-
-
-IMPLEMENT_SERVERCLASS_ST(MovieExplosion, DT_MovieExplosion)
-END_SEND_TABLE()
-
-LINK_ENTITY_TO_CLASS(env_movieexplosion, MovieExplosion);
-
-
-MovieExplosion* MovieExplosion::CreateMovieExplosion(const Vector &pos)
-{
- CBaseEntity *pEnt = CreateEntityByName(MOVIEEXPLOSION_ENTITYNAME);
- if(pEnt)
- {
- MovieExplosion *pEffect = dynamic_cast<MovieExplosion*>(pEnt);
- if(pEffect && pEffect->edict())
- {
- pEffect->SetLocalOrigin( pos );
- pEffect->Activate();
- return pEffect;
- }
- else
- {
- UTIL_Remove(pEnt);
- }
- }
-
- return NULL;
-}
-
-
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +// +//=============================================================================// +#include "cbase.h" +#include "movie_explosion.h" + +// memdbgon must be the last include file in a .cpp file!!! +#include "tier0/memdbgon.h" + +#define MOVIEEXPLOSION_ENTITYNAME "env_movieexplosion" + + +IMPLEMENT_SERVERCLASS_ST(MovieExplosion, DT_MovieExplosion) +END_SEND_TABLE() + +LINK_ENTITY_TO_CLASS(env_movieexplosion, MovieExplosion); + + +MovieExplosion* MovieExplosion::CreateMovieExplosion(const Vector &pos) +{ + CBaseEntity *pEnt = CreateEntityByName(MOVIEEXPLOSION_ENTITYNAME); + if(pEnt) + { + MovieExplosion *pEffect = dynamic_cast<MovieExplosion*>(pEnt); + if(pEffect && pEffect->edict()) + { + pEffect->SetLocalOrigin( pos ); + pEffect->Activate(); + return pEffect; + } + else + { + UTIL_Remove(pEnt); + } + } + + return NULL; +} + + |