--- a/hedgewars/GSHandlers.inc Mon Nov 09 18:44:09 2009 +0000
+++ b/hedgewars/GSHandlers.inc Mon Nov 09 20:29:21 2009 +0000
@@ -494,7 +494,7 @@
or (hwRound(Gear^.Y) and LAND_HEIGHT_MASK <> 0) then
begin
if (Gear^.Kind = gtSniperRifleShot) and ((GameFlags and gfLaserSight) = 0) then cLaserSighting:= false;
- if (Gear^.Ammo^.NumPerTurn <= CurrentHedgehog^.AttacksNum) and
+ if (Gear^.Ammo^.NumPerTurn <= CurrentHedgehog^.MultiShootAttacks) and
((GameFlags and gfArtillery) = 0) then cArtillery:= false;
Gear^.doStep:= @doStepShotIdle
end;
@@ -541,10 +541,8 @@
dec(TurnTimeLeft)
else
begin
- PHedgehog(Gear^.Hedgehog)^.AttacksNum:= Gear^.Ammo^.NumPerTurn+1;
DeleteGear(Gear);
- AfterAttack;
- TurnTimeLeft:= 0
+ AfterAttack
end;
end;