hedgewars/GSHandlers.inc
changeset 2087 79472a9be025
parent 2068 9d683de175d7
child 2089 a08758aed76a
equal deleted inserted replaced
2086:5e477053e849 2087:79472a9be025
   445 
   445 
   446 if (Gear^.Health <= 0)
   446 if (Gear^.Health <= 0)
   447 	or (hwRound(Gear^.X) and LAND_WIDTH_MASK <> 0)
   447 	or (hwRound(Gear^.X) and LAND_WIDTH_MASK <> 0)
   448 	or (hwRound(Gear^.Y) and LAND_HEIGHT_MASK <> 0) then
   448 	or (hwRound(Gear^.Y) and LAND_HEIGHT_MASK <> 0) then
   449     begin
   449     begin
   450     if (GameFlags and gfLaserSight) = 0 then cLaserSighting:= false;
   450     if (Gear^.Kind = gtSniperRifleShot) and ((GameFlags and gfLaserSight) = 0) then cLaserSighting:= false;
   451     if (Gear^.Ammo^.NumPerTurn <= CurrentHedgehog^.AttacksNum) and
   451     if (Gear^.Ammo^.NumPerTurn <= CurrentHedgehog^.AttacksNum) and
   452        ((GameFlags and gfArtillery) = 0) then cArtillery:= false;
   452        ((GameFlags and gfArtillery) = 0) then cArtillery:= false;
   453 	Gear^.doStep:= @doStepShotIdle
   453 	Gear^.doStep:= @doStepShotIdle
   454     end;
   454     end;
   455 end;
   455 end;