From 4fe7801cfccbfa6f5a42ac2eb919287ef98ea611 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 25 Jun 2013 06:36:59 +0000 Subject: Unified the way mobs are spawned (egg vs natural). Fixed deadlocks in mob moving. Fixed mob destroying code. Should fix FS #400 and partially fix FS #381 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1626 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Entity.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/Entity.h') diff --git a/source/Entity.h b/source/Entity.h index 49a7a5b0d..a756d064b 100644 --- a/source/Entity.h +++ b/source/Entity.h @@ -161,7 +161,8 @@ public: inline int GetUniqueID(void) const { return m_UniqueID; } inline bool IsDestroyed(void) const { return !m_IsInitialized; } - void Destroy(void); + /// Schedules the entity for destroying; if a_ShouldBroadcast is set to true, broadcasts the DestroyEntity packet + void Destroy(bool a_ShouldBroadcast = true); // tolua_end -- cgit v1.2.3