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:
parent
b7f8c94e0d
commit
620edc4127
|
@ -155,9 +155,12 @@ static void updateCampaignProgress(void)
|
||||||
if (!campaignComplete && game.completedMissions == game.totalMissions)
|
if (!campaignComplete && game.completedMissions == game.totalMissions)
|
||||||
{
|
{
|
||||||
for (starSystem = game.starSystemHead.next ; starSystem != NULL ; starSystem = starSystem->next)
|
for (starSystem = game.starSystemHead.next ; starSystem != NULL ; starSystem = starSystem->next)
|
||||||
|
{
|
||||||
|
if (starSystem->missionHead.next && starSystem->missionHead.next->available)
|
||||||
{
|
{
|
||||||
starSystem->activeMission = starSystem->missionHead.next;
|
starSystem->activeMission = starSystem->missionHead.next;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
campaignComplete = 1;
|
campaignComplete = 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue