if(campaign_entries < 2)
{
// I have won
- savevar = strcat("g_campaign", campaign_name, "_won");
- CampaignSaveCvar(savevar, 1);
- // advance level (for menu to show it right)
- CampaignSaveCvar(campaign_index_var, campaign_level + 1);
+ if(campaign_level == cvar_normal(campaign_index_var))
+ {
+ savevar = strcat("g_campaign", campaign_name, "_won");
+ CampaignSaveCvar(savevar, 1);
+ // advance level (for menu to show it right)
+ CampaignSaveCvar(campaign_index_var, campaign_level + 1);
+ }
}
else if(campaign_level == cvar_normal(campaign_index_var))
{