diff -r c3a77ff02a23 -r 42efccba0711 share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/journey.lua --- a/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/journey.lua Thu Jun 12 20:47:11 2014 +0200 +++ b/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/journey.lua Thu Jun 12 21:25:39 2014 +0200 @@ -80,7 +80,7 @@ --/////////////////////////Animation Functions/////////////////////// function AfterMidFailAnim() - ParseCommand("teamgone " .. loc("Natives")) + DismissTeam(loc("Natives")) TurnTimeLeft = 0 end @@ -568,7 +568,7 @@ end function KillPrincess() - ParseCommand("teamgone " .. loc("Cannibal Sentry")) + DismissTeam(loc("Cannibal Sentry")) TurnTimeLeft = 0 end --/////////////////////////////Misc Functions//////////////////////// @@ -804,7 +804,7 @@ function DoLeaksDead() AddCaption(loc("The village, unprepared, was destroyed by the cyborgs...")) - ParseCommand("teamgone " .. loc("Natives")) + DismissTeam(loc("Natives")) end function CheckDenseDead() @@ -813,7 +813,7 @@ function DoDenseDead() AddCaption(loc("The village, unprepared, was destroyed by the cyborgs...")) - ParseCommand("teamgone " .. loc("Natives")) + DismissTeam(loc("Natives")) end function CheckTookBlowTorch() @@ -895,7 +895,7 @@ function DoLost() AddAnim(endFailAnim) - AddFunction({func = ParseCommand, args = {'teamgone ' .. loc('Natives')}}) + AddFunction({func = DismissTeam, args = {loc('Natives')}}) end function CheckWon() @@ -912,8 +912,8 @@ function FinishWon() SwitchHog(leaks) - ParseCommand("teamgone " .. loc("Cannibal Sentry")) - ParseCommand("teamgone " .. loc("011101001")) + DismissTeam(loc("Cannibal Sentry")) + DismissTeam(loc("011101001")) TurnTimeLeft = 0 end