Fix 3 more incorrect uses of loc() in scripts
authorWuzzy <almikes@aol.com>
Tue, 16 May 2017 23:31:28 +0200
changeset 12425 f9cbb896967b
parent 12424 b9cc405541c1
child 12426 9f3387907e06
Fix 3 more incorrect uses of loc() in scripts
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit02.lua
share/hedgewars/Data/Missions/Training/Basic_Training_-_Bazooka.lua
share/hedgewars/Data/Scripts/TargetPractice.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit02.lua	Tue May 16 21:37:46 2017 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit02.lua	Tue May 16 23:31:28 2017 +0200
@@ -23,7 +23,7 @@
 -- mission objectives
 local minesTimeText = loc("Mines time: 0 seconds")
 local goals = {
-	[dialog01] = {missionName, loc("Exploring the tunnel"), loc("Search for the device with the help of the other hedgehogs ").."|"..loc("Hog Solo has to reach the last crates" .. "|" .. minesTimeText), 1, 4000},
+	[dialog01] = {missionName, loc("Exploring the tunnel"), loc("Search for the device with the help of the other hedgehogs ").."|"..loc("Hog Solo has to reach the last crates") .. "|" .. minesTimeText, 1, 4000},
 	[dialog02] = {missionName, loc("Exploring the tunnel"), loc("Explore the tunnel with the other hedgehogs and search for the device").."|"..loc("Hog Solo has to reach the last crates") .. "|" .. minesTimeText, 1, 4000},
 	[dialog03] = {missionName, loc("Return to the Surface"), loc("Go to the surface!").."|"..loc("Attack Captain Lime before he attacks back").."|"..minesTimeText, 1, 4000},
 	[dialog04] = {missionName, loc("Return to the Surface"), loc("Go to the surface!").."|"..loc("Attack the assassins before they attack back").."|"..minesTimeText, 1, 4000},
--- a/share/hedgewars/Data/Missions/Training/Basic_Training_-_Bazooka.lua	Tue May 16 21:37:46 2017 +0200
+++ b/share/hedgewars/Data/Missions/Training/Basic_Training_-_Bazooka.lua	Tue May 16 23:31:28 2017 +0200
@@ -227,7 +227,7 @@
 	if GetGearType(gear) == gtHedgehog then
 		if not game_lost then
 			game_lost = true
-			AddCaption(loc("You lose!", 0xFFFFFFFF, capgrpGameState))
+			AddCaption(loc("You lose!"), 0xFFFFFFFF, capgrpGameState)
 			ShowMission(loc("Bazooka Training") , loc("Aiming Practice"), loc("Oh no! You failed! Just try again."), -amSkip, 0)
 
 			time_goal = 1
--- a/share/hedgewars/Data/Scripts/TargetPractice.lua	Tue May 16 21:37:46 2017 +0200
+++ b/share/hedgewars/Data/Scripts/TargetPractice.lua	Tue May 16 23:31:28 2017 +0200
@@ -233,7 +233,7 @@
 
 	_G.onGearDelete = function(gear)
 		if GetGearType(gear) == gtTarget and band(GetState(gear), gstDrowning) ~= 0 then
-			AddCaption(loc("You lost your target, try again!", 0xFFFFFFFF, capgrpGameState))
+			AddCaption(loc("You lost your target, try again!"), 0xFFFFFFFF, capgrpGameState)
 			local newTarget = spawnTarget()
 			local x, y = GetGearPosition(newTarget)
 			local success = PlaceSprite(x, y + 24, sprAmGirder, 0, 0xFFFFFFFF, false, false, false)