share/hedgewars/Data/Scripts/Utils.lua
changeset 14591 b4089fa16b34
parent 14525 029f40c609b4
child 14811 d65e25e211d4
--- a/share/hedgewars/Data/Scripts/Utils.lua	Mon Jan 14 21:19:57 2019 +0100
+++ b/share/hedgewars/Data/Scripts/Utils.lua	Mon Jan 14 23:30:15 2019 +0100
@@ -44,6 +44,8 @@
 		return string.format(loc("Team highscore: %d"), value)
 	elseif recordType == "Lowscore" then
 		return string.format(loc("Team lowscore: %d"), value)
+	elseif recordType == "AccuracyRecord" then
+		return string.format(loc("Team's top accuracy: %d%"), value)
 	end
 end
 
@@ -60,7 +62,7 @@
 	local oldRecord = tonumber(GetMissionVar(recordType))
 	local newRecord = false
 	if stat == nil then
-		stat = true
+		stat = recordType ~= "AccuracyRecord"
 	end
 	if type(oldRecord) ~= "number" then
 		newRecord = true