share/hedgewars/Data/Missions/Campaign/A Classic Fairytale/backstab.lua
changeset 8944 ed2509832311
parent 8043 da083f8d95e6
--- a/share/hedgewars/Data/Missions/Campaign/A Classic Fairytale/backstab.lua	Wed May 01 01:27:35 2013 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A Classic Fairytale/backstab.lua	Wed May 01 04:05:10 2013 +0300
@@ -760,7 +760,9 @@
     SaveCampaignVar("M5ChiefDead", "0")
   end
   SaveCampaignVar("M5Choice", "" .. choice)
-  SaveCampaignVar("Progress", "5")
+  if progress and progress<5 then
+    SaveCampaignVar("Progress", "5")
+  end
 
   for i = 1, 7 do 
     if natives[i] == deployedHog then
@@ -814,6 +816,7 @@
 end
 
 function GetVariables()
+  progress = tonumber(GetCampaignVar("Progress"))
   m2DenseDead = tonumber(GetCampaignVar("M2DenseDead"))
   m2Choice = tonumber(GetCampaignVar("M2Choice"))
   m4DenseDead = tonumber(GetCampaignVar("M4DenseDead"))