Fix 2 team name mistakes in missions
authorWuzzy <Wuzzy2@mail.ru>
Fri, 21 Dec 2018 16:54:41 +0100
changeset 14497 6c62f7ebea45
parent 14496 b2db921cbfd1
child 14498 e78c44ae94da
Fix 2 team name mistakes in missions
share/hedgewars/Data/Missions/Challenge/User_Mission_-_That_Sinking_Feeling.lua
share/hedgewars/Data/Missions/Training/Basic_Training_-_Rope.lua
--- a/share/hedgewars/Data/Missions/Challenge/User_Mission_-_That_Sinking_Feeling.lua	Fri Dec 21 15:14:47 2018 +0100
+++ b/share/hedgewars/Data/Missions/Challenge/User_Mission_-_That_Sinking_Feeling.lua	Fri Dec 21 16:54:41 2018 +0100
@@ -64,7 +64,7 @@
 	hh[6] = AddHog(loc("Sponge"), 1, 100, "sf_chunli")
 	hh[7] = AddHog(loc("Deadweight"), 1, 100, "dish_Teacup")
 
-	playerTeamname = AddMissionTeam(-1)
+	playerTeamName = AddMissionTeam(-1)
 	player = AddMissionHog(1)
 
 	SetGearPosition(player, 3992, 733)
--- a/share/hedgewars/Data/Missions/Training/Basic_Training_-_Rope.lua	Fri Dec 21 15:14:47 2018 +0100
+++ b/share/hedgewars/Data/Missions/Training/Basic_Training_-_Rope.lua	Fri Dec 21 16:54:41 2018 +0100
@@ -47,7 +47,7 @@
 -- "Constants"
 local initHogHealth = 50
 local initHogHealthFinal = 1
-local teamName = loc("Wannabe Ropers")
+local teamName
 
 local girderData = {
 	{2012, 1366, 6}, -- water gate
@@ -96,7 +96,7 @@
 	WaterRise = 0
 	HealthDecrease = 0
 
-	AddMissionTeam(-1)
+	teamName = AddMissionTeam(-1)
 	hog = AddMissionHog(initHogHealth)
 	SetGearPosition(hog, cpX, cpY)
 	SetEffect(hog, heResurrectable, 1)