Fixed a bug in Mission 2, where hidden hogs appeared before getting deleted on losing the game.
--- 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()