Fixed EndMissionTake processing order with immediat=1
immediat=1 is supposed to work only if this condition AND all conditions above are truemaster
parent
73536290b2
commit
8ce3a783bb
|
@ -5344,13 +5344,10 @@ Error CRobotMain::CheckEndMissionForGroup(std::vector<CSceneEndCondition*>& endT
|
||||||
if (result != ERR_OK)
|
if (result != ERR_OK)
|
||||||
{
|
{
|
||||||
finalResult = result;
|
finalResult = result;
|
||||||
if (finalResult == INFO_LOST || finalResult == INFO_LOSTq)
|
|
||||||
{
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
if (finalResult == ERR_OK && !hasWinningConditions) finalResult = ERR_MISSION_NOTERM; // Never end mission without ending conditions
|
||||||
if (finalResult == ERR_OK && !hasWinningConditions) finalResult = ERR_MISSION_NOTERM;
|
|
||||||
return finalResult;
|
return finalResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue