diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-12-04 12:56:15 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-12-04 12:57:44 +0100 |
commit | 67d0bc93091c45dde6237cf19fc98d248e8f5638 (patch) | |
tree | 04a525de56edb38bd12b1d9409cd6fb50cf8a4e1 /tools | |
parent | 752fc022630dfdba7ce06cfdd30cf894e2e50f96 (diff) | |
download | rommel-in-the-desert-67d0bc93091c45dde6237cf19fc98d248e8f5638.tar.gz |
Fix eslint issues - remove dead code.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gendata.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/gendata.js b/tools/gendata.js index fb64009..065a837 100644 --- a/tools/gendata.js +++ b/tools/gendata.js @@ -31,7 +31,6 @@ let hex_exists = new Array(map_w*map_h).fill(1); let side_limit = new Array(map_w*map_h*3).fill(CLEAR); let side_road = new Array(map_w*map_h*3).fill(0); let hex_road = new Array(map_w*map_h).fill(0); -let hex_all_road = new Array(map_w*map_h).fill(0); function add_side(s, t) { if (side_limit[s]) @@ -59,7 +58,6 @@ function def_side(t,a,b) { function def_road(t, list) { for (let i = 0; i < list.length; ++i) { - hex_all_road[list[i]] |= t; if (t > hex_road[list[i]]) hex_road[list[i]] = t; } @@ -655,7 +653,6 @@ let data = "// DON'T EDIT - AUTOGENERATED\n" data += "const all_hexes = " + JSON.stringify(all_hexes) + "\n" data += "const hex_exists = " + JSON.stringify(hex_exists) + "\n" data += "const hex_road = " + JSON.stringify(hex_road) + "\n" -data += "const hex_all_road = " + JSON.stringify(hex_all_road) + "\n" data += "const side_road = " + JSON.stringify(side_road) + "\n" data += "const side_limit = " + JSON.stringify(side_limit) + "\n" data += "const hex_name = " + JSON.stringify(hex_name) + "\n" @@ -669,7 +666,7 @@ gen_array("unit_class", u => u.class) gen_array("unit_speed", u => u.speed) data += "if (typeof module !== 'undefined')\n\tmodule.exports = {\n" -data += "\t\tall_hexes, hex_exists, hex_name, hex_all_road, hex_road, side_road, side_limit, regions,\n" +data += "\t\tall_hexes, hex_exists, hex_name, hex_road, side_road, side_limit, regions,\n" data += "\t\tunit_name, unit_appearance, unit_max_steps, unit_elite, unit_class, unit_speed,\n" data += "\t}\n" |