Core/Players: Fix corpse remove visual for clients
This commit is contained in:
@@ -200,7 +200,10 @@ void ObjectAccessor::RemoveCorpse(Corpse* corpse)
|
|||||||
ASSERT(corpse && corpse->GetType() != CORPSE_BONES);
|
ASSERT(corpse && corpse->GetType() != CORPSE_BONES);
|
||||||
|
|
||||||
if (corpse->FindMap())
|
if (corpse->FindMap())
|
||||||
|
{
|
||||||
|
corpse->DestroyForNearbyPlayers();
|
||||||
corpse->FindMap()->Remove(corpse, false);
|
corpse->FindMap()->Remove(corpse, false);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
corpse->RemoveFromWorld();
|
corpse->RemoveFromWorld();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user