diff options
Diffstat (limited to 'source/TNTEntity.cpp')
-rw-r--r-- | source/TNTEntity.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source/TNTEntity.cpp b/source/TNTEntity.cpp index e431464b3..25e8f19ce 100644 --- a/source/TNTEntity.cpp +++ b/source/TNTEntity.cpp @@ -29,10 +29,14 @@ cTNTEntity::cTNTEntity(const Vector3d & a_Pos, float a_FuseTimeInSec) : -void cTNTEntity::Initialize(cWorld * a_World) +bool cTNTEntity::Initialize(cWorld * a_World) { - super::Initialize(a_World); - a_World->BroadcastSpawnEntity(*this); + if (super::Initialize(a_World)) + { + a_World->BroadcastSpawnEntity(*this); + return true; + } + return false; } |