share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua
changeset 12411 edeae7661dca
parent 11515 4dd77731453b
child 12900 a9e4e8fa852c
--- 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