[9652] Avoid corpse save at arenas also, small cleanups.

This commit is contained in:
VladimirMangos 2010-04-01 16:49:56 +04:00
parent 09b873a316
commit d004549fd4
2 changed files with 8 additions and 10 deletions

View file

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

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "9651" #define REVISION_NR "9652"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__