share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua
changeset 15966 605697b8947a
parent 15154 13a69aad9325
child 15967 f362e82cddcf
--- a/share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua	Wed Jun 28 12:46:04 2023 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua	Wed Jun 28 17:06:22 2023 +0200
@@ -2142,7 +2142,11 @@
 		CS.PARACHUTE_IS_ON=1
 	elseif(GetGearType(gearUid)==gtSwitcher)
 	then
-		CS.SWITCH_HOG_IS_ON=true
+		if not CS.GAME_STARTED then
+			DeleteGear(gearUid)
+		else
+			CS.SWITCH_HOG_IS_ON=true
+		end
 	end
 end