# HG changeset patch # User nemo # Date 1242957705 0 # Node ID 79472a9be025de30ba36fb3f14db267ce6ffd7ae # Parent 5e477053e849708b09824168be7449e2c9c1bb4f neglected test on sniper rifle being active diff -r 5e477053e849 -r 79472a9be025 hedgewars/GSHandlers.inc --- a/hedgewars/GSHandlers.inc Thu May 21 19:42:37 2009 +0000 +++ b/hedgewars/GSHandlers.inc Fri May 22 02:01:45 2009 +0000 @@ -447,7 +447,7 @@ or (hwRound(Gear^.X) and LAND_WIDTH_MASK <> 0) or (hwRound(Gear^.Y) and LAND_HEIGHT_MASK <> 0) then begin - if (GameFlags and gfLaserSight) = 0 then cLaserSighting:= false; + if (Gear^.Kind = gtSniperRifleShot) and ((GameFlags and gfLaserSight) = 0) then cLaserSighting:= false; if (Gear^.Ammo^.NumPerTurn <= CurrentHedgehog^.AttacksNum) and ((GameFlags and gfArtillery) = 0) then cArtillery:= false; Gear^.doStep:= @doStepShotIdle