* Corpse related cleanup (author: Hunuza)

* Avoid saving of the corpse in arenas (author: VladimirMangos)

--HG--
branch : trunk
This commit is contained in:
azazel committed 2010-08-06 00:15:29 +06:00
1 parent 4773aad26b
commit f9a51dc214
16 files changed
+34 -178

No files matched your search

+2 -4
View File
@@ -4834,10 +4834,8 @@ void Player::CreateCorpse()
}
}
// we don't SaveToDB for players in battlegrounds so don't do it for corpses either
const MapEntry *entry = sMapStore.LookupEntry(corpse->GetMapId());
ASSERT(entry);
if (entry->map_type != MAP_BATTLEGROUND)
// we do not need to save corpses for BG/arenas
if (!GetMap()->IsBattleGroundOrArena())
corpse->SaveToDB();
// register for player, but not show