diff options
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -10,6 +10,9 @@ const sqrt = Math.sqrt const class_name = [ "armor", "infantry", "anti-tank", "artillery" ] +// refit and queue hexes +const hex_special = [ 48, 49, 102, 127 ] + const ARMOR = 0 const INFANTRY = 1 const ANTITANK = 2 @@ -425,7 +428,7 @@ function build_hexes() { ui.hex_y[hex_id] = round(hex_y) // Add hex cell - if (hex_exists[hex_id]) + if (hex_exists[hex_id] || hex_special.includes(hex_id)) { let hex = ui.hexes[hex_id] = document.createElementNS(svgNS, "polygon") hex.setAttribute("class", "hex") |