equal
deleted
inserted
replaced
211 else |
211 else |
212 if not game_lost then |
212 if not game_lost then |
213 AddCaption(loc("You have destroyed all targets!"), 0xFFFFFFFF, capgrpGameState) |
213 AddCaption(loc("You have destroyed all targets!"), 0xFFFFFFFF, capgrpGameState) |
214 ShowMission(params.missionTitle, loc("Aiming practice"), loc("Congratulations! You have destroyed all targets within the time."), 0, 0) |
214 ShowMission(params.missionTitle, loc("Aiming practice"), loc("Congratulations! You have destroyed all targets within the time."), 0, 0) |
215 PlaySound(sndVictory, player) |
215 PlaySound(sndVictory, player) |
|
216 SetEffect(player, heInvulnerable, 1) |
216 SetState(player, bor(GetState(player), gstWinner)) |
217 SetState(player, bor(GetState(player), gstWinner)) |
217 time_goal = TurnTimeLeft |
218 time_goal = TurnTimeLeft |
218 -- Disable control |
219 -- Disable control |
219 SetInputMask(0) |
220 SetInputMask(0) |
220 AddAmmo(player, params.ammoType, 0) |
221 AddAmmo(player, params.ammoType, 0) |