# HG changeset patch
# User Wuzzy <Wuzzy2@mail.ru>
# Date 1509055958 -7200
# Node ID 659ab77b52c0c12ba1539f4d4d4bcb7de2a7188d
# Parent  1f8a62d1609db874865314aa4f03533413eef6c4
Disable hog control after winning target practice challenge

diff -r 1f8a62d1609d -r 659ab77b52c0 share/hedgewars/Data/Scripts/TargetPractice.lua
--- a/share/hedgewars/Data/Scripts/TargetPractice.lua	Thu Oct 26 22:49:39 2017 +0200
+++ b/share/hedgewars/Data/Scripts/TargetPractice.lua	Fri Oct 27 00:12:38 2017 +0200
@@ -215,6 +215,9 @@
 					PlaySound(sndVictory, player)
 					SetState(player, bor(GetState(player), gstWinner))
 					time_goal = TurnTimeLeft
+					-- Disable control
+					SetInputMask(0)
+					AddAmmo(player, params.ammoType, 0)
 				end
 			end
 		end