mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-21 15:27:47 -04:00
Partially revert a36a0a77ef.
Cleaning databases for old/deprecated and expired quests should never be a developers choice specifically. This should be done by admins, not developers, through the use of the already existing paramters found in the worldserver config : CleanCharacterDB / PersistentCharacterCleanFlags An adjustment to the respective questloader prepared statement has been done to accomodate for the earlier change (by not loading such quests into memory at all). Documentation for how this cleanup-procedures work already exists in the core : doc/CharacterDBCleanup.txt.
This commit is contained in:
@@ -17962,14 +17962,8 @@ void Player::_LoadQuestStatus(PreparedQueryResult result)
|
||||
QuestStatusData& questStatusData = m_QuestStatus[quest_id];
|
||||
|
||||
uint8 qstatus = fields[1].GetUInt8();
|
||||
if (qstatus < MAX_QUEST_STATUS && qstatus > QUEST_STATUS_NONE)
|
||||
if (qstatus < MAX_QUEST_STATUS)
|
||||
questStatusData.Status = QuestStatus(qstatus);
|
||||
else if (qstatus == QUEST_STATUS_NONE)
|
||||
{
|
||||
sLog->outError("Player %s (GUID: %u) has QUEST_STATUS_NONE for quest %u and should be removed from character_queststatus.",
|
||||
GetName(), GetGUIDLow(), quest_id);
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
questStatusData.Status = QUEST_STATUS_INCOMPLETE;
|
||||
|
||||
Reference in New Issue
Block a user