mirror of
https://github.com/DarkflameUniverse/DarkflameServer
synced 2024-08-30 18:43:58 +00:00
bodgy bodge to fix minigame missions
This commit is contained in:
parent
b7d7146821
commit
1607b506c8
@ -109,7 +109,7 @@ void Mission::LoadFromXml(tinyxml2::XMLElement* element) {
|
|||||||
} else {
|
} else {
|
||||||
const auto value = std::stoul(task->Attribute("v"));
|
const auto value = std::stoul(task->Attribute("v"));
|
||||||
|
|
||||||
m_Tasks[index]->SetProgress(value, false);
|
m_Tasks[index]->SetProgress(value, m_Tasks[index]->GetType() == MissionTaskType::MISSION_TASK_TYPE_MINIGAME);
|
||||||
|
|
||||||
task = task->NextSiblingElement();
|
task = task->NextSiblingElement();
|
||||||
}
|
}
|
||||||
@ -356,7 +356,7 @@ void Mission::CheckCompletion() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
SetMissionState(MissionState::MISSION_STATE_READY_TO_COMPLETE);
|
MakeReadyToComplete();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Mission::Catchup() {
|
void Mission::Catchup() {
|
||||||
|
Loading…
Reference in New Issue
Block a user