share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua
changeset 15970 a803428704fd
parent 15964 d18261ddac4a
--- a/share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua	Wed Jun 28 21:16:14 2023 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua	Wed Jun 28 23:41:38 2023 +0200
@@ -470,17 +470,18 @@
 		local roundDraw = false
 		if #clanScores >= 2 and clanScores[1].score == clanScores[2].score and clanScores[1].score ~= MAX_TURN_TIME then
 			roundDraw = true
-			SendStat(siGameResult, loc("Round draw"))
+			SendStat(siGameResult, GetEngineString("TMsgStrId", sidDraw))
 			SendStat(siCustomAchievement, loc("The teams are tied for the fastest time."))
 		elseif #sortedTeams >= 1 then
-			SendStat(siGameResult, string.format(loc("%s wins!"), sortedTeams[1].name))
+
+			SendStat(siGameResult, formatEngineString(GetEngineString("TMsgStrId", sidWinner), sortedTeams[1].name))
 			SendStat(siCustomAchievement, string.format(loc("%s wins with a best time of %.1fs."), sortedTeams[1].name, (sortedTeams[1].score/1000)))
 			for i=1,#unfinishedArray do
 				 SendStat(siCustomAchievement, unfinishedArray[i])
 			end
 		else
 			roundDraw = true
-			SendStat(siGameResult, loc("Round draw"))
+			SendStat(siGameResult, GetEngineString("TMsgStrId", sidDraw))
 			SendStat(siCustomAchievement, loc("Nobody managed to finish the race. What a shame!"))
 			SendStat(siCustomAchievement, loc("Maybe you should try an easier TechRacer map."))
 		end