Fixed variable loading errors and added saving of "M8Scene" in mission 8
authorbelphegorr <szabibibi@gmail.com>
Fri, 10 Aug 2012 20:11:05 +0300
changeset 7451 d2dce3b530f8
parent 7448 d0521a3a4358
child 7454 ce7d7138b436
Fixed variable loading errors and added saving of "M8Scene" in mission 8
share/hedgewars/Data/Missions/Campaign/A Classic Fairytale/queen.lua
--- a/share/hedgewars/Data/Missions/Campaign/A Classic Fairytale/queen.lua	Fri Aug 10 04:26:58 2012 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A Classic Fairytale/queen.lua	Fri Aug 10 20:11:05 2012 +0300
@@ -560,17 +560,17 @@
   m5Choice = tonumber(GetCampaignVar("M5Choice"))
   m2DenseDead = tonumber(GetCampaignVar("M2DenseDead"))
   m4DenseDead = tonumber(GetCampaignVar("M4DenseDead"))
-  m5DenseDead = tonumber(GetCampaignVar("M4DenseDead"))
+  m5DenseDead = tonumber(GetCampaignVar("M5DenseDead"))
   m4LeaksDead = tonumber(GetCampaignVar("M4LeaksDead"))
-  m5LeaksDead = tonumber(GetCampaignVar("M4LeaksDead"))
+  m5LeaksDead = tonumber(GetCampaignVar("M5LeaksDead"))
   m4ChiefDead = tonumber(GetCampaignVar("M4ChiefDead"))
-  m5ChiefDead = tonumber(GetCampaignVar("M4ChiefDead"))
+  m5ChiefDead = tonumber(GetCampaignVar("M5ChiefDead"))
   m4WaterDead = tonumber(GetCampaignVar("M4WaterDead"))
-  m5WaterDead = tonumber(GetCampaignVar("M4WaterDead"))
+  m5WaterDead = tonumber(GetCampaignVar("M5WaterDead"))
   m4BuffaloDead = tonumber(GetCampaignVar("M4BuffaloDead"))
-  m5BuffaloDead = tonumber(GetCampaignVar("M4BuffaloDead"))
-  m5WiseDead = tonumber(GetCampaignVar("M4BuffaloDead"))
-  m5GirlDead = tonumber(GetCampaignVar("M4BuffaloDead"))
+  m5BuffaloDead = tonumber(GetCampaignVar("M5BuffaloDead"))
+  m5WiseDead = tonumber(GetCampaignVar("M5WiseDead"))
+  m5GirlDead = tonumber(GetCampaignVar("M5GirlDead"))
 end
 
 function SaveCampaignVariables()
@@ -585,6 +585,7 @@
   SaveCampaignVar("M8DeployedLeader", deployedLeader)
   SaveCampaignVar("M8PrincessLeader", princessLeader)
   SaveCampaignVar("M8EnemyFled", enemyFled)
+  SaveCampaignVar("M8Scene", "" .. scene)
   SaveCampaignVar("Progress", "8")
 end