# HG changeset patch
# User Wuzzy <Wuzzy2@mail.ru>
# Date 1545410874 -3600
# Node ID ff2c1f25fc03f13ff81f9654e6739bd1d3b0e1a7
# Parent  cc358e997e326e35198700c28e63c47476a73378
Minor refactor in single missions

diff -r cc358e997e32 -r ff2c1f25fc03 share/hedgewars/Data/Missions/Challenge/Basic_Training_-_Sniper_Rifle.lua
--- a/share/hedgewars/Data/Missions/Challenge/Basic_Training_-_Sniper_Rifle.lua	Fri Dec 21 17:43:04 2018 +0100
+++ b/share/hedgewars/Data/Missions/Challenge/Basic_Training_-_Sniper_Rifle.lua	Fri Dec 21 17:47:54 2018 +0100
@@ -133,8 +133,7 @@
 	HealthDecrease = 0
 
 	-- Create the player team
-	AddMissionTeam(-1)
-	playerTeamName = GetTeamName(0)
+	playerTeamName = AddMissionTeam(-1)
 	-- And add a hog to it
 	player = AddMissionHog(1)
 	SetGearPosition(player, 602, 1465)
diff -r cc358e997e32 -r ff2c1f25fc03 share/hedgewars/Data/Missions/Scenario/User_Mission_-_Teamwork.lua
--- a/share/hedgewars/Data/Missions/Scenario/User_Mission_-_Teamwork.lua	Fri Dec 21 17:43:04 2018 +0100
+++ b/share/hedgewars/Data/Missions/Scenario/User_Mission_-_Teamwork.lua	Fri Dec 21 17:47:54 2018 +0100
@@ -24,8 +24,7 @@
 	HealthDecrease = 0
 	WaterRise = 0
 
-	local idx = AddMissionTeam(-1)
-	playerTeamName = GetTeamName(idx)
+	playerTeamName = AddMissionTeam(-1)
 	player = AddMissionHog(50)
 	p2 = AddMissionHog(20)
 
diff -r cc358e997e32 -r ff2c1f25fc03 share/hedgewars/Data/Missions/Scenario/User_Mission_-_Teamwork_2.lua
--- a/share/hedgewars/Data/Missions/Scenario/User_Mission_-_Teamwork_2.lua	Fri Dec 21 17:43:04 2018 +0100
+++ b/share/hedgewars/Data/Missions/Scenario/User_Mission_-_Teamwork_2.lua	Fri Dec 21 17:47:54 2018 +0100
@@ -26,8 +26,7 @@
 	Map = "CrazyMission"
 	Theme = "CrazyMission"
 
-	local idx = AddMissionTeam(-1)
-	playerTeamName = GetTeamName(idx)
+	playerTeamName = AddMissionTeam(-1)
 	player = AddMissionHog(30)
 	hlayer = AddMissionHog(40)