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
|
// 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
|
||||||
|
|
|
||||||
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue