diff options
author | megamage <none@none> | 2009-06-03 00:36:44 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-06-03 00:36:44 -0500 |
commit | 7fd22f063bdcc485599bf0d616339c226a029433 (patch) | |
tree | b78fc7f5f62b19f7cfcbe8c5abd9e72b6349c8a9 /src/game/ObjectMgr.cpp | |
parent | 214741e9e523b3722f7a023c7d95b64ab768c687 (diff) |
*Consider model 11686 as trigger and do not allow they to choose random model. This fix the bug that some triggers are visible.
--HG--
branch : trunk
Diffstat (limited to 'src/game/ObjectMgr.cpp')
-rw-r--r-- | src/game/ObjectMgr.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index c5271429ddd..c60c5f43aef 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -1128,7 +1128,11 @@ void ObjectMgr::LoadCreatures() } // I do not know why but in db most display id are not zero - if(data.displayid == cInfo->Modelid_A1 || data.displayid == cInfo->Modelid_A2 + if(data.displayid == 11686) + { + (const_cast<CreatureInfo*>(cInfo))->flags_extra |= CREATURE_FLAG_EXTRA_TRIGGER; + } + else if(data.displayid == cInfo->Modelid_A1 || data.displayid == cInfo->Modelid_A2 || data.displayid == cInfo->Modelid_H1 || data.displayid == cInfo->Modelid_H2) data.displayid = 0; @@ -1172,6 +1176,8 @@ void ObjectMgr::LoadCreatures() sLog.outErrorDb("Table `creature` have creature (GUID: %u Entry: %u) with `MovementType`=1 (random movement) but with `spawndist`=0, replace by idle movement type (0).",guid,data.id ); data.movementType = IDLE_MOTION_TYPE; } + else if(cInfo->flags_extra & CREATURE_FLAG_EXTRA_TRIGGER) + data.movementType = IDLE_MOTION_TYPE; } else if(data.movementType == IDLE_MOTION_TYPE) { |