Update target cursor after shooting targetable ammo with gfMultiWeapon
authorWuzzy <Wuzzy2@mail.ru>
Tue, 07 Aug 2018 01:43:22 +0200
changeset 13621 0c797469d16d
parent 13620 211a37eb6a29
child 13622 358ccb060cb3
Update target cursor after shooting targetable ammo with gfMultiWeapon
hedgewars/uWorld.pas
--- a/hedgewars/uWorld.pas	Tue Aug 07 01:31:50 2018 +0200
+++ b/hedgewars/uWorld.pas	Tue Aug 07 01:43:22 2018 +0200
@@ -1802,7 +1802,7 @@
     uCursor.updatePosition();
 {$ENDIF}
 z:= round(200/zoom);
-inbtwnTrgtAttks := ((GameFlags and gfInfAttack) <> 0) and (CurrentHedgehog <> nil) and ((CurrentHedgehog^.Gear = nil) or (CurrentHedgehog^.Gear <> FollowGear)) and ((Ammoz[CurrentHedgehog^.CurAmmoType].Ammo.Propz and ammoprop_NeedTarget) <> 0);
+inbtwnTrgtAttks := ((GameFlags and (gfInfAttack or gfMultiWeapon)) <> 0) and (CurrentHedgehog <> nil) and ((CurrentHedgehog^.Gear = nil) or (CurrentHedgehog^.Gear <> FollowGear)) and ((Ammoz[CurrentHedgehog^.CurAmmoType].Ammo.Propz and ammoprop_NeedTarget) <> 0);
 if autoCameraOn and (not PlacingHogs) and (FollowGear <> nil) and (not isCursorVisible) and (not bShowAmmoMenu) and (not fastUntilLag) and (not inbtwnTrgtAttks) then
     if ((abs(CursorPoint.X - prevPoint.X) + abs(CursorPoint.Y - prevpoint.Y)) > 4) then
         begin