mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[0074] Fix spawnmask errors
Signed-off-by: Yaki Khadafi <ElSolDolLo@gmail.com>
This commit is contained in:
parent
69b46bd682
commit
0b24dd2912
2 changed files with 5 additions and 3 deletions
|
|
@ -1202,6 +1202,8 @@ void ObjectMgr::LoadCreatures()
|
|||
for (int k = 0; k < MAX_DIFFICULTY; ++k)
|
||||
if (GetMapDifficultyData(i, Difficulty(k)))
|
||||
spawnMasks[i] |= (1 << k);
|
||||
// Map 0 was removed from dbc as of 4.x.x
|
||||
spawnMasks[0] = 1 << REGULAR_DIFFICULTY;
|
||||
|
||||
BarGoLink bar(result->GetRowCount());
|
||||
|
||||
|
|
@ -1250,8 +1252,6 @@ void ObjectMgr::LoadCreatures()
|
|||
continue;
|
||||
}
|
||||
|
||||
// Map 0 was removed from dbc as of 4.x.x
|
||||
spawnMasks[0] = 1;
|
||||
if (data.spawnMask & ~spawnMasks[data.mapid])
|
||||
sLog.outErrorDb("Table `creature` have creature (GUID: %u) that have wrong spawn mask %u including not supported difficulty modes for map (Id: %u).", guid, data.spawnMask, data.mapid);
|
||||
|
||||
|
|
@ -1416,6 +1416,8 @@ void ObjectMgr::LoadGameObjects()
|
|||
for (int k = 0; k < MAX_DIFFICULTY; ++k)
|
||||
if (GetMapDifficultyData(i, Difficulty(k)))
|
||||
spawnMasks[i] |= (1 << k);
|
||||
// Map 0 was removed from dbc as of 4.x.x
|
||||
spawnMasks[0] = 1 << REGULAR_DIFFICULTY;
|
||||
|
||||
BarGoLink bar(result->GetRowCount());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue