Fixed EndMissionTake processing order with immediat=1

immediat=1 is supposed to work only if this condition AND all conditions above are true
master
krzys-h 2015-07-19 19:19:47 +02:00
parent 73536290b2
commit 8ce3a783bb
1 changed files with 2 additions and 5 deletions

View File

@ -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; if (finalResult == ERR_OK && !hasWinningConditions) finalResult = ERR_MISSION_NOTERM; // Never end mission without ending conditions
return finalResult; return finalResult;
} }