fix mission 6 hiding cyborg (issue 622) 0.9.19
authormaster_ex
Tue, 04 Jun 2013 16:23:45 +0200
branch0.9.19
changeset 9120 089411fbf4e6
parent 9119 dfb3ffc68602
child 9121 41424fca0ef3
fix mission 6 hiding cyborg (issue #622)
share/hedgewars/Data/Missions/Campaign/A Classic Fairytale/dragon.lua
--- a/share/hedgewars/Data/Missions/Campaign/A Classic Fairytale/dragon.lua	Tue Jun 04 16:08:36 2013 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A Classic Fairytale/dragon.lua	Tue Jun 04 16:23:45 2013 +0200
@@ -402,7 +402,8 @@
   if progress and progress<6 then
     SaveCampaignVar("Progress", "6")
   end
-  ParseCommand("teamgone " .. loc("011101001"))
+  RestoreHedge(cyborg)
+  DeleteGear(cyborg)
   TurnTimeLeft = 0
 end
 
@@ -421,8 +422,8 @@
 end
 
 function EndMission()
-  ParseCommand("teamgone " .. loc("Natives"))
-  ParseCommand("teamgone " .. loc("011101001"))
+  RestoreHedge(cyborg)
+  DeleteGear(cyborg)
   TurnTimeLeft = 0
 end