Merge branch 'ark'

feature/prepare-cross-merge
Ulukyn 5 years ago committed by kaetemi
parent 417b42487d
commit b35ba142be
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -13418,12 +13418,12 @@ void CCharacter::abandonMission(uint8 indexClient)
}
vector<string> params = getCustomMissionParams(toUpper(templ->getMissionName())+"_CALLBACK");
if (params.size() >= 1)
if (mission->getFinished() && params.size() >= 1)
{
if (mission->getFinished() == false)
validateDynamicMissionStep(params[0]+"&result=ABD");
if (mission->getMissionSuccess())
validateDynamicMissionStep(params[0]+"&result=SUCCESS");
else
validateDynamicMissionStep(params[0]+"&result=FINABD");
validateDynamicMissionStep(params[0]+"&result=ABD");
setCustomMissionParams(toUpper(templ->getMissionName())+"_CALLBACK", "");
}
@ -13715,6 +13715,15 @@ bool CCharacter::processMissionStepUserEvent(std::list<CMissionEvent*> &eventLis
if (!templ->Tags.NoList && !templ->Tags.AutoRemove)
sendDynamicSystemMessage(_Id, bChained ? "EGS_MISSION_STEP_SUCCESS" : "EGS_MISSION_SUCCESS");
if (!bChained) {
vector<string> params = getCustomMissionParams(toUpper(templ->getMissionName())+"_CALLBACK");
if (params.size() >= 1)
{
validateDynamicMissionStep(params[0]+"&result=FINISHED");
setCustomMissionParams(toUpper(templ->getMissionName())+"_CALLBACK", "");
}
}
CMissionManager::getInstance()->missionDoneOnce(templ);
mission->stopChildren();

Loading…
Cancel
Save