# HG changeset patch
# User Wuzzy <Wuzzy2@mail.ru>
# Date 1525358796 -7200
# Node ID f609c5cd82869b09e9e92cf131fee0f367d0b70e
# Parent  544867ac1017932f17e80f7daffd5c7e73e0f33d
Continental supplies: Bouncy boomerang does not spawn crate when drowning

diff -r 544867ac1017 -r f609c5cd8286 share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua	Thu May 03 16:16:15 2018 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua	Thu May 03 16:46:36 2018 +0200
@@ -2144,7 +2144,9 @@
 	--australian special
 	elseif(GetGearType(gearUid)==gtBall and GetGearMessage(gearUid)==3)
 	then
-		SpawnRandomCrate(GetX(gearUid), GetY(gearUid))
+		if band(GetState(gearUid), gstDrowning) == 0 then
+			SpawnRandomCrate(GetX(gearUid), GetY(gearUid))
+		end
 
 	--asia (using para)
 	elseif(GetGearType(gearUid)==gtParachute)