mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 10:37:01 +00:00
[9652] Avoid corpse save at arenas also, small cleanups.
This commit is contained in:
parent
09b873a316
commit
d004549fd4
2 changed files with 8 additions and 10 deletions
|
|
@ -4353,10 +4353,8 @@ Corpse* 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 not need saved corpses for BG/arenas
|
||||
if (!GetMap()->IsBattleGroundOrArena())
|
||||
corpse->SaveToDB();
|
||||
|
||||
// register for player, but not show
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "9651"
|
||||
#define REVISION_NR "9652"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue