Fixed a bug in Mission 2, where hidden hogs appeared before getting deleted on losing the game.
authorbelphegorr <szabibibi@gmail.com>
Tue, 26 Jun 2012 02:07:58 +0300
changeset 7211 a1e9335f1d50
parent 7209 f1976889e1a7
child 7213 fce7de71742f
Fixed a bug in Mission 2, where hidden hogs appeared before getting deleted on losing the game.
share/hedgewars/Data/Missions/Campaign/A Classic Fairytale/shadow.lua
--- a/share/hedgewars/Data/Missions/Campaign/A Classic Fairytale/shadow.lua	Tue Jun 26 01:17:04 2012 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A Classic Fairytale/shadow.lua	Tue Jun 26 02:07:58 2012 +0300
@@ -746,17 +746,8 @@
 function DoDead()
   AddCaption("...and so the cyborgs took over the world...")
   stage = loseStage
-  if ramonHidden then
-    RestoreHog(ramon)
-  end
-  if spikyHidden then
-    RestoreHog(spiky)
-  end
-  SetHealth(dense, 0)
-  SetHealth(leaks, 0)
-  SetHealth(ramon, 0)
-  SetHealth(spiky, 0)
   TurnTimeLeft = 0
+  ParseCommand('teamgone Natives')
 end
 
 function CheckDenseDead()