share/hedgewars/Data/Scripts/TargetPractice.lua
changeset 12780 659ab77b52c0
parent 12425 f9cbb896967b
child 13034 fe9c12209f15
equal deleted inserted replaced
12779:1f8a62d1609d 12780:659ab77b52c0
   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 					SetState(player, bor(GetState(player), gstWinner))
   216 					SetState(player, bor(GetState(player), gstWinner))
   217 					time_goal = TurnTimeLeft
   217 					time_goal = TurnTimeLeft
       
   218 					-- Disable control
       
   219 					SetInputMask(0)
       
   220 					AddAmmo(player, params.ammoType, 0)
   218 				end
   221 				end
   219 			end
   222 			end
   220 		end
   223 		end
   221 
   224 
   222 		if GetGearType(gear) == gtHedgehog then
   225 		if GetGearType(gear) == gtHedgehog then