summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/play.js b/play.js
index 663d903..78e1b3a 100644
--- a/play.js
+++ b/play.js
@@ -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")