# HG changeset patch
# User nemo
# Date 1241740659 0
# Node ID 860b9aea5e86e5e784e9918e5390b2c6c454bc63
# Parent  29ee410071b9d40813570ff00f527d41defc1f0b
allow adjusting angle during sniping

diff -r 29ee410071b9 -r 860b9aea5e86 hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Thu May 07 14:03:55 2009 +0000
+++ b/hedgewars/GSHandlers.inc	Thu May 07 23:57:39 2009 +0000
@@ -486,7 +486,7 @@
 	or (hwRound(Gear^.Y) and LAND_HEIGHT_MASK <> 0) then
     begin
     if (GameFlags and gfLaserSight) = 0 then cLaserSighting:= false;
-    if (Gear^.Ammo^.NumPerTurn < CurrentHedgehog^.AttacksNum) and
+    if (Gear^.Ammo^.NumPerTurn <= CurrentHedgehog^.AttacksNum) and
        ((GameFlags and gfArtillery) = 0) then cArtillery:= false;
 	Gear^.doStep:= @doStepShotIdle
     end;
@@ -504,6 +504,7 @@
 cArtillery:= true;
 HHGear:=PHedgehog(Gear^.Hedgehog)^.Gear;
 HHGear^.State:= HHGear^.State or gstNotKickable;
+HedgehogChAngle(HHGear);
 if not cLaserSighting then // game doesn't have default laser sight. turn it on and give them a chance to aim
     begin
     cLaserSighting:= true;