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

@ -156,7 +156,10 @@ static void updateCampaignProgress(void)
{
for (starSystem = game.starSystemHead.next ; starSystem != NULL ; starSystem = starSystem->next)
{
starSystem->activeMission = starSystem->missionHead.next;
if (starSystem->missionHead.next && starSystem->missionHead.next->available)
{
starSystem->activeMission = starSystem->missionHead.next;
}
}
campaignComplete = 1;