DB&Core/Quests: Change MinLevel to signed since -1 is a valid value for deprecated quests

This commit is contained in:
Nay
2012-08-13 23:58:52 +01:00
parent 1f4b69908b
commit 424d860454
2 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1 @@
ALTER TABLE `quest_template` CHANGE `MinLevel` `MinLevel` tinyint(4) NOT NULL DEFAULT '0';

View File

@@ -3550,6 +3550,12 @@ void ObjectMgr::LoadQuests()
}
}
if (qinfo->MinLevel == uint32(-1))
{
sLog->outError(LOG_FILTER_SQL, "Quest %u should be disabled because `MinLevel` = -1", qinfo->GetQuestId());
// no changes needed, sending -1 in SMSG_QUEST_QUERY_RESPONSE is valid
}
// client quest log visual (area case)
if (qinfo->ZoneOrSort > 0)
{