# HG changeset patch
# User Wuzzy <almikes@aol.com>
# Date 1494602145 -7200
# Node ID edeae7661dca67c3ad920361cd115f802bf05782
# Parent  8b971d8944d6779cb2d925a68614c12e1efaa362
Lua refactor: Replace ParseCommand('setweap… with SetWeapon

diff -r 8b971d8944d6 -r edeae7661dca share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua	Fri May 12 16:53:29 2017 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua	Fri May 12 17:15:45 2017 +0200
@@ -904,7 +904,7 @@
 			then
 				AddAmmo(CurrentHedgehog,amSwitch,GetAmmoCount(CurrentHedgehog, amSwitch)+1)
 
-				ParseCommand("setweap " .. string.char(amSwitch))
+				SetWeapon(amSwitch)
 				GLOBAL_TEMP_VALUE=87
 			end
 		end
@@ -1228,7 +1228,7 @@
 function onSlot(slot)
 	if(GLOBAL_TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]==0)
 	then
-		ParseCommand("setweap " .. string.char(amSkip))
+		SetWeapon(amSkip)
 	end
 end