1
0

Fixed non-natural spawning near player (egg, breeding, etc.)

This commit is contained in:
LogicParrot
2016-01-16 12:28:13 +02:00
parent 5ca2f4fd0c
commit ac2c79f797
2 changed files with 187 additions and 186 deletions

View File

@@ -3504,15 +3504,6 @@ UInt32 cWorld::SpawnMobFinalize(cMonster * a_Monster)
return cEntity::INVALID_ID;
}
cPlayer * a_Closest_Player = FindClosestPlayer(a_Monster->GetPosition(), 24);
if (a_Closest_Player != nullptr) // Too close to a player, bail out.
{
delete a_Monster;
a_Monster = nullptr;
return cEntity::INVALID_ID;
}
// Initialize the monster into the current world.
if (!a_Monster->Initialize(*this))
{