[0074] Fix spawnmask errors

Signed-off-by: Yaki Khadafi <ElSolDolLo@gmail.com>
This commit is contained in:
Yaki Khadafi 2012-08-13 13:18:23 +03:00 committed by Antz
parent 69b46bd682
commit 0b24dd2912
2 changed files with 5 additions and 3 deletions

View file

@ -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());

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "0073"
#define REVISION_NR "0074"
#endif // __REVISION_NR_H__