From 0b24dd291294e44d873b7586394162cc0daf3f89 Mon Sep 17 00:00:00 2001 From: Yaki Khadafi Date: Mon, 13 Aug 2012 13:18:23 +0300 Subject: [PATCH] [0074] Fix spawnmask errors Signed-off-by: Yaki Khadafi --- src/game/ObjectMgr.cpp | 6 ++++-- src/shared/revision_nr.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index be2b62a13..af1b83035 100755 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -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()); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 2385966d8..88d844e78 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "0073" + #define REVISION_NR "0074" #endif // __REVISION_NR_H__