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
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user