display airplane altitude indicator also with drill strike and air attack - when more-wind is activated
authorsheepluva
Sat, 22 Nov 2014 22:35:21 +0100
changeset 10530 5a65f09455c4
parent 10529 5e837065977c
child 10531 b8e6164a1a18
display airplane altitude indicator also with drill strike and air attack - when more-wind is activated
hedgewars/uWorld.pas
--- a/hedgewars/uWorld.pas	Sat Nov 22 21:31:09 2014 +0100
+++ b/hedgewars/uWorld.pas	Sat Nov 22 22:35:21 2014 +0100
@@ -1805,7 +1805,7 @@
         with CurrentHedgehog^ do
             if (Gear <> nil) and ((Gear^.State and gstHHChooseTarget) <> 0) then
                 begin
-            if (CurAmmoType = amNapalm) or (CurAmmoType = amMineStrike) then
+            if (CurAmmoType = amNapalm) or (CurAmmoType = amMineStrike) or (((GameFlags and gfMoreWind) <> 0) and ((CurAmmoType = amDrillStrike) or (CurAmmoType = amAirAttack))) then
                 DrawLine(-3000, topY-300, 7000, topY-300, 3.0, (Team^.Clan^.Color shr 16), (Team^.Clan^.Color shr 8) and $FF, Team^.Clan^.Color and $FF, $FF);
             i:= GetCurAmmoEntry(CurrentHedgehog^)^.Pos;
             with Ammoz[CurAmmoType] do