allow adjusting angle during sniping
authornemo
Thu, 07 May 2009 23:57:39 +0000
changeset 2033 860b9aea5e86
parent 2032 29ee410071b9
child 2034 decdf48cffd7
allow adjusting angle during sniping
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;