Only allow missions to be replayed that were made available in the main game (i.e., don't unlock optional ones if they were skipped).

This commit is contained in:
Steve 2016-08-12 12:22:39 +01:00
parent b7f8c94e0d
commit 620edc4127
1 changed files with 4 additions and 1 deletions

View File

@ -155,9 +155,12 @@ static void updateCampaignProgress(void)
if (!campaignComplete && game.completedMissions == game.totalMissions)
{
for (starSystem = game.starSystemHead.next ; starSystem != NULL ; starSystem = starSystem->next)
{
if (starSystem->missionHead.next && starSystem->missionHead.next->available)
{
starSystem->activeMission = starSystem->missionHead.next;
}
}
campaignComplete = 1;