From e97078fd9dd2e0594a12e4749b0f42038ac79734 Mon Sep 17 00:00:00 2001 From: HoneySkull Date: Tue, 24 Dec 2024 10:22:39 -0600 Subject: [PATCH] Fixes #6297 Path sprites hidden under units. --- .../megamek/client/ui/swing/boardview/BoardView.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/megamek/src/megamek/client/ui/swing/boardview/BoardView.java b/megamek/src/megamek/client/ui/swing/boardview/BoardView.java index 7d08de925e6..266d86e285d 100644 --- a/megamek/src/megamek/client/ui/swing/boardview/BoardView.java +++ b/megamek/src/megamek/client/ui/swing/boardview/BoardView.java @@ -957,12 +957,6 @@ public void draw(Graphics g) { drawSprites(g, movementSprites); } - // draw movement, if valid - drawSprites(g, pathSprites); - - // draw flight path indicators - drawSprites(g, fpiSprites); - if (game.getPhase().isFiring()) { for (Coords c : strafingCoords) { drawHexBorder(g, getHexLocation(c), Color.yellow, 0, 3); @@ -979,6 +973,12 @@ public void draw(Graphics g) { drawSprites(g, overTerrainSprites); } + // draw movement, if valid + drawSprites(g, pathSprites); + + // draw flight path indicators + drawSprites(g, fpiSprites); + // draw the ruler line if (rulerStart != null) { Point start = getCentreHexLocation(rulerStart);