diff options
author | megamage <none@none> | 2009-01-14 18:42:53 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-01-14 18:42:53 -0600 |
commit | 14e38a3ddf27a7ced018c59864c81dd6eb35217f (patch) | |
tree | d29e76ad51fea59cba9c808651929f549f7ba392 /src/game/ObjectMgr.cpp | |
parent | 83e7f653fe6a1aad6121fa7606da620d14938e0c (diff) |
*Update to Mangos 7093.
--HG--
branch : trunk
Diffstat (limited to 'src/game/ObjectMgr.cpp')
-rw-r--r-- | src/game/ObjectMgr.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 61f1203f58a..df179143fb9 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -1693,21 +1693,29 @@ void ObjectMgr::LoadItemPrototypes() if(dbcitem) { - if(proto->Class != dbcitem->Class || proto->SubClass != dbcitem->SubClass) + if(proto->Class != dbcitem->Class) + { + sLog.outErrorDb("Item (Entry: %u) not correct ñlass %u, must be %u (still using DB value).",i,proto->Class,dbcitem->Class); + // It safe let use Class from DB + } + /* disabled: have some strange wrong cases for Subclass values. + for enable also uncomment Subclass field in ItemEntry structure and in Itemfmt[] + if(proto->SubClass != dbcitem->SubClass) { sLog.outErrorDb("Item (Entry: %u) not correct (Class: %u, Sub: %u) pair, must be (Class: %u, Sub: %u) (still using DB value).",i,proto->Class,proto->SubClass,dbcitem->Class,dbcitem->SubClass); - // It safe let use Class/Subclass from DB + // It safe let use Subclass from DB } + */ if(proto->Unk0 != dbcitem->Unk0) { - sLog.outErrorDb("Item (Entry: %u) not correct %u Unk0, must be %u (still using DB value).",i,proto->Unk0,dbcitem->Unk0); + sLog.outErrorDb("Item (Entry: %u) not correct %i Unk0, must be %i (still using DB value).",i,proto->Unk0,dbcitem->Unk0); // It safe let use Unk0 from DB } if(proto->Material != dbcitem->Material) { - sLog.outErrorDb("Item (Entry: %u) not correct %u material, must be %u (still using DB value).",i,proto->Material,dbcitem->Material); + sLog.outErrorDb("Item (Entry: %u) not correct %i material, must be %i (still using DB value).",i,proto->Material,dbcitem->Material); // It safe let use Material from DB } |