share/hedgewars/Data/Scripts/SimpleMission.lua
changeset 13648 690cc84e9fd6
parent 13592 818134c33f54
child 14236 74bf2d906097
--- a/share/hedgewars/Data/Scripts/SimpleMission.lua	Wed Aug 08 14:38:54 2018 +0200
+++ b/share/hedgewars/Data/Scripts/SimpleMission.lua	Wed Aug 08 15:22:34 2018 +0200
@@ -524,7 +524,7 @@
 	_G.sm.win = function()
 		if not _G.sm.gameEnded then
 			_G.sm.gameEnded = true
-			AddCaption(loc("Victory!"), 0xFFFFFFFF, capgrpGameState)
+			AddCaption(loc("Victory!"), capcolDefault, capgrpGameState)
 			SendStat(siGameResult, loc("You win!"))
 			if GetHogLevel(CurrentHedgehog) == 0 then
 				SetState(CurrentHedgehog, bor(GetState(CurrentHedgehog), gstWinner))
@@ -539,7 +539,7 @@
 	_G.sm.lose = function(failReason)
 		if not _G.sm.gameEnded then
 			_G.sm.gameEnded = true
-			AddCaption(loc("Scenario failed!"), 0xFFFFFFFF, capgrpGameState)
+			AddCaption(loc("Scenario failed!"), capcolDefault, capgrpGameState)
 			SendStat(siGameResult, loc("You lose!"))
 			if failReason then
 				SendStat(siCustomAchievement, failReason)
@@ -836,7 +836,7 @@
 		end
 		if params.rubbers ~= nil then
 			for i, rubberData in pairs(params.rubbers) do
-				PlaceSprite(rubberData.x, rubberData.y, sprAmRubber, 0xFFFFFFFF, rubberData.frameIdx, false, false, false, lfBouncy)
+				PlaceSprite(rubberData.x, rubberData.y, sprAmRubber, capcolDefault, rubberData.frameIdx, false, false, false, lfBouncy)
 			end
 		end