mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
DB&Core/Quests: Change MinLevel to signed since -1 is a valid value for deprecated quests
This commit is contained in:
1
sql/updates/2012_08_13_00_world_quest_template.sql
Normal file
1
sql/updates/2012_08_13_00_world_quest_template.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE `quest_template` CHANGE `MinLevel` `MinLevel` tinyint(4) NOT NULL DEFAULT '0';
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user