From ac2c79f79757ca2b7fc5df9dac031fb8b6b3317b Mon Sep 17 00:00:00 2001 From: LogicParrot Date: Sat, 16 Jan 2016 12:28:13 +0200 Subject: Fixed non-natural spawning near player (egg, breeding, etc.) --- src/World.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/World.cpp') diff --git a/src/World.cpp b/src/World.cpp index 9a2e23ac0..6bb5b5940 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -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)) { -- cgit v1.2.3