share/hedgewars/Data/Scripts/SpeedShoppa.lua
changeset 14464 ead8928a59f8
parent 14401 6c21bd8547dd
child 14475 2113296b7a29
--- a/share/hedgewars/Data/Scripts/SpeedShoppa.lua	Tue Dec 18 15:21:23 2018 +0100
+++ b/share/hedgewars/Data/Scripts/SpeedShoppa.lua	Tue Dec 18 18:16:31 2018 +0100
@@ -164,6 +164,7 @@
 	_G.finalize = function()
 		if not gameEnded then
 			if cratesCollected == #crates then
+				SaveMissionVar("Won", "true")
 				PlaySound(sndVictory, playerHog)
 				SetEffect(playerHog, heInvulnerable, 1)
 				SetState(playerHog, bor(GetState(playerHog), gstWinner))