--- a/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua Wed Apr 13 14:00:53 2016 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua Wed Apr 13 14:01:28 2016 +0200
@@ -297,7 +297,13 @@
end
if wpActive[i] == false then
- AddCaption(string.format(loc("Waypoints remaining: %d"), wpRem-1),0xffba00ff,capgrpGameState)
+ local wpMessage = ""
+ if wpRem-1 == 0 then
+ wpMessage = loc("Track completed!")
+ else
+ wpMessage = string.format(loc("Waypoints remaining: %d"), wpRem-1)
+ end
+ AddCaption(wpMessage, 0xffba00ff, capgrpGameState)
end
wpActive[i] = true