share/hedgewars/Data/Scripts/TargetPractice.lua
changeset 14464 ead8928a59f8
parent 14365 a7769dbd7088
child 14475 2113296b7a29
--- a/share/hedgewars/Data/Scripts/TargetPractice.lua	Tue Dec 18 15:21:23 2018 +0100
+++ b/share/hedgewars/Data/Scripts/TargetPractice.lua	Tue Dec 18 18:16:31 2018 +0100
@@ -244,6 +244,7 @@
 				spawnTarget()
 			else
 				if not game_lost then
+					SaveMissionVar("Won", "true")
 					AddCaption(loc("You have destroyed all targets!"), capcolDefault, capgrpGameState)
 					ShowMission(params.missionTitle, loc("Aiming practice"), loc("Congratulations! You have destroyed all targets within the time."), 0, 0)
 					PlaySound(sndVictory, player)