Skip to content

Commit

Permalink
Fixes #6297 Path sprites hidden under units.
Browse files Browse the repository at this point in the history
  • Loading branch information
HoneySkull committed Dec 24, 2024
1 parent 76a6c50 commit e97078f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions megamek/src/megamek/client/ui/swing/boardview/BoardView.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit e97078f

Please sign in to comment.