Skip to content

Commit

Permalink
don't draw DZs in game, player table DZ display, text fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NickAragua committed Aug 19, 2024
1 parent 718cdc9 commit 31c896b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2011,7 +2011,7 @@ private void drawHex(Coords c, Graphics boardGraph, boolean saveBoardImage) {
}
}

if (hex.containsTerrain(Terrains.DEPLOYMENT_ZONE) && (game == null)) {
if (hex.containsTerrain(Terrains.DEPLOYMENT_ZONE) && (game.getPhase().isUnknown())) {
drawHexBorder(g, Color.yellow, 5, 5);
drawCenteredString("DZ " + Board.exitsAsIntList(hex.getTerrain(Terrains.DEPLOYMENT_ZONE).getExits()),
0, (int) (50 * scale), font_note, g);
Expand Down
6 changes: 3 additions & 3 deletions megamek/src/megamek/client/ui/swing/lobby/PlayerTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import megamek.client.ui.Messages;
import megamek.client.ui.swing.GUIPreferences;
import megamek.client.ui.swing.util.UIUtil;
import megamek.common.Board;
import megamek.common.IStartingPositions;
import megamek.common.Player;
import megamek.common.options.GameOptions;
Expand Down Expand Up @@ -224,9 +225,8 @@ public Component getTableCellRendererComponent(JTable table, Object value, boole
result.append(", " + so);
result.append(", " + sw);
}
} else {
String msg_none = Messages.getString("ChatLounge.None");
result.append(msg_start + ": " + msg_none);
} else if (player.getStartingPos() > IStartingPositions.START_LOCATION_NAMES.length) {
result.append(msg_start + ": " + "Zone " + Board.decodeCustomDeploymentZoneID(player.getStartingPos()));
}
result.append("</FONT>");

Expand Down
2 changes: 1 addition & 1 deletion megamek/src/megamek/common/Terrains.java
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ public static String getDisplayName(int type, int level) {
return "Extremely high metal content";
}
case DEPLOYMENT_ZONE:
return "Deployment Zone " + level;
return "Deployment Zone";
default:
return null;
}
Expand Down

0 comments on commit 31c896b

Please sign in to comment.