share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/united.lua
changeset 13150 5083fb0a2992
parent 12938 e65aa3c3d4e6
child 13588 141cdfe0f3ca
--- a/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/united.lua	Fri Mar 09 18:03:59 2018 +0100
+++ b/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/united.lua	Fri Mar 09 19:05:59 2018 +0100
@@ -26,9 +26,9 @@
 HedgewarsScriptLoad("/Scripts/Animate.lua")
 
 -----------------------------Constants---------------------------------
-choiceAccept = 1
-choiceRefuse = 2
-choiceAttack = 3
+choiceAccepted = 1
+choiceRefused = 2
+choiceAttacked = 3
 
 leaksPos = {2067, 509}
 densePos = {1882, 503}
@@ -289,7 +289,7 @@
   if m2DenseDead == 1 then
     denseDead = true
   end
-  m2Choice = tonumber(GetCampaignVar("M2Choice"))
+  m2Choice = tonumber(GetCampaignVar("M2Choice")) or choiceRefused
 end
 
 function SetupPlace()