# HG changeset patch # User Wuzzy # Date 1507487098 -7200 # Node ID 2e6dcd97f085b78aa6e77fc67430351a2c10e70d # Parent cc13c9bc6839b7304a48206ecd4e1c3ebdd2e70d No longer jiggle sticky mines if using portable portal device This fixes the sticky mine sound playing when using portal gun while any sticky mine is placed on ground. We decided that placed sticky mines can't be teleported. diff -r cc13c9bc6839 -r 2e6dcd97f085 ChangeLog.txt --- a/ChangeLog.txt Sun Oct 08 19:07:56 2017 +0200 +++ b/ChangeLog.txt Sun Oct 08 20:24:58 2017 +0200 @@ -53,6 +53,7 @@ * Fixed teleportation being able to teleport in land if you clicked in the "dark" area of the wrap world edge * Fixed team getting infinite ammo when stockpiling >= 100 ammo (max. finite ammo is now limited to 99) * Fixed short sound effect breakdown right after using a time box + * Fixed sticky mine sound sometimes playing when shooting portable portal device when a sticky mine is placed on terrain * Remove buggy /finish chat command * Various other fixes diff -r cc13c9bc6839 -r 2e6dcd97f085 hedgewars/uGearsHandlersMess.pas --- a/hedgewars/uGearsHandlersMess.pas Sun Oct 08 19:07:56 2017 +0200 +++ b/hedgewars/uGearsHandlersMess.pas Sun Oct 08 20:24:58 2017 +0200 @@ -4798,7 +4798,7 @@ iterator:= GearsList; while iterator <> nil do begin - if not (iterator^.Kind in [gtPortal, gtAirAttack, gtKnife]) and ((iterator^.Hedgehog <> CurrentHedgehog) + if not (iterator^.Kind in [gtPortal, gtAirAttack, gtKnife, gtSMine]) and ((iterator^.Hedgehog <> CurrentHedgehog) or ((iterator^.Message and gmAllStoppable) = 0)) then begin iterator^.Active:= true;