share/hedgewars/Data/Scripts/Multiplayer/Racer.lua
changeset 12968 544c4302efe4
parent 12967 52c12029c7bd
child 12969 a5c5fe878a4e
--- a/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Sat Feb 10 18:03:12 2018 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Sat Feb 10 19:30:51 2018 +0100
@@ -512,6 +512,16 @@
                         EndTurn(true)
                 end
                 racerActive = false -- newadd
+
+		if trackFinished and not turnSkipped then
+                         for i=0, wpCount-1 do
+                       	         SetVisualGearValues(wpCirc[i], nil, nil, 255, 255, nil, 2)
+                         end
+                elseif not turnSkipped then
+                         for i=0, wpCount-1 do
+                       	         SetVisualGearValues(wpCirc[i], nil, nil, 32, 32, nil, 1)
+                         end
+                end
         end
 end