diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-25 08:36:59 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-25 08:36:59 +0200 |
commit | 4fe7801cfccbfa6f5a42ac2eb919287ef98ea611 (patch) | |
tree | 4afeac98622e2a49894164651af7b8d70d91d254 /source/Entity.cpp | |
parent | ActivatorRail is craftable (Patch by tonibm19) (diff) | |
download | cuberite-4fe7801cfccbfa6f5a42ac2eb919287ef98ea611.tar cuberite-4fe7801cfccbfa6f5a42ac2eb919287ef98ea611.tar.gz cuberite-4fe7801cfccbfa6f5a42ac2eb919287ef98ea611.tar.bz2 cuberite-4fe7801cfccbfa6f5a42ac2eb919287ef98ea611.tar.lz cuberite-4fe7801cfccbfa6f5a42ac2eb919287ef98ea611.tar.xz cuberite-4fe7801cfccbfa6f5a42ac2eb919287ef98ea611.tar.zst cuberite-4fe7801cfccbfa6f5a42ac2eb919287ef98ea611.zip |
Diffstat (limited to 'source/Entity.cpp')
-rw-r--r-- | source/Entity.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/Entity.cpp b/source/Entity.cpp index 082e1e925..bc68ec3b2 100644 --- a/source/Entity.cpp +++ b/source/Entity.cpp @@ -173,13 +173,17 @@ void cEntity::WrapSpeed(void) -void cEntity::Destroy(void) +void cEntity::Destroy(bool a_ShouldBroadcast) { if (!m_IsInitialized) { return; } - m_World->BroadcastDestroyEntity(*this); + + if (a_ShouldBroadcast) + { + m_World->BroadcastDestroyEntity(*this); + } m_IsInitialized = false; |