Fix airplane line not being drawn in full for very large maps
authorWuzzy <Wuzzy2@mail.ru>
Mon, 29 Jun 2020 14:25:23 +0200
changeset 15654 c1d0ada72cc8
parent 15653 d738b2b1249e
child 15655 116307c752f6
Fix airplane line not being drawn in full for very large maps
hedgewars/uWorld.pas
--- a/hedgewars/uWorld.pas	Mon Jun 29 14:08:19 2020 +0200
+++ b/hedgewars/uWorld.pas	Mon Jun 29 14:25:23 2020 +0200
@@ -1319,7 +1319,7 @@
 // line at airplane height for certain airstrike types (when spawning height is important)
 with CurrentHedgehog^ do
     if (isCursorVisible) and ((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);
+        DrawLine(-cCamLimitX, topY-300, LAND_WIDTH + cCamLimitX, topY-300, 3.0, (Team^.Clan^.Color shr 16), (Team^.Clan^.Color shr 8) and $FF, Team^.Clan^.Color and $FF, $FF);
 
 // gear HUD extras (fuel indicator, secondary ammo, etc.)
 if replicateToLeft then