hedgewars/HHHandlers.inc
changeset 5287 ffc1475a4afd
parent 5279 66969e7494c5
child 5313 5e18eaef65d0
equal deleted inserted replaced
5285:af4dc03dd60d 5287:ffc1475a4afd
   378             isInMultiShoot:= true
   378             isInMultiShoot:= true
   379             end
   379             end
   380         else
   380         else
   381             begin
   381             begin
   382             OnUsedAmmo(CurrentHedgehog^);
   382             OnUsedAmmo(CurrentHedgehog^);
   383             if ((Ammoz[a].Ammo.Propz and ammoprop_NoRoundEnd) = 0) and ((GameFlags and gfInfAttack) = 0) then
   383             if ((Ammoz[a].Ammo.Propz and ammoprop_NoRoundEnd) = 0) and (((GameFlags and gfInfAttack) = 0) or PlacingHogs) then
   384                 begin
   384                 begin
   385                 if TagTurnTimeLeft = 0 then TagTurnTimeLeft:= TurnTimeLeft;
   385                 if TagTurnTimeLeft = 0 then TagTurnTimeLeft:= TurnTimeLeft;
   386                 TurnTimeLeft:=(Ammoz[a].TimeAfterTurn * cGetAwayTime) div 100;
   386                 TurnTimeLeft:=(Ammoz[a].TimeAfterTurn * cGetAwayTime) div 100;
   387                 end;
   387                 end;
   388             if ((Ammoz[a].Ammo.Propz and ammoprop_NoRoundEnd) = 0) then State:= State or gstAttacked;
   388             if ((Ammoz[a].Ammo.Propz and ammoprop_NoRoundEnd) = 0) then State:= State or gstAttacked;