No longer jiggle sticky mines if using portable portal device
authorWuzzy <almikes@aol.com>
Sun, 08 Oct 2017 20:24:58 +0200
changeset 12681 2e6dcd97f085
parent 12680 cc13c9bc6839
child 12682 f60d58cfb9fb
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.
ChangeLog.txt
hedgewars/uGearsHandlersMess.pas
--- 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
 
--- 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;