* Corpse related cleanup (author: Hunuza)
* Avoid saving of the corpse in arenas (author: VladimirMangos) --HG-- branch : trunk
This commit is contained in:
1 parent
4773aad26b
commit
f9a51dc214
16 files changed
+34
-178
No files matched your search
@@ -823,19 +823,6 @@ void Map::Remove(Player *player, bool remove)
|
||||
DeleteFromWorld(player);
|
||||
}
|
||||
|
||||
bool Map::RemoveBones(uint64 guid, float x, float y)
|
||||
{
|
||||
if (IsRemovalGrid(x, y))
|
||||
{
|
||||
Corpse * corpse = sObjectAccessor.GetObjectInWorld(GetId(), x, y, guid, (Corpse*)NULL);
|
||||
if (corpse && corpse->GetTypeId() == TYPEID_CORPSE && corpse->GetType() == CORPSE_BONES)
|
||||
corpse->DeleteBonesFromWorld();
|
||||
else
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
template<class T>
|
||||
void
|
||||
Map::Remove(T *obj, bool remove)
|
||||
|
||||
Reference in new issue
Block a user