diff options
Diffstat (limited to 'tools/gendata.js')
-rw-r--r-- | tools/gendata.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/gendata.js b/tools/gendata.js index a963248..1af2356 100644 --- a/tools/gendata.js +++ b/tools/gendata.js @@ -56,7 +56,8 @@ function def_side(t,a,b) { function def_road(t, list) { for (let i = 0; i < list.length; ++i) - hex_road[list[i]] = t; + if (t > hex_road[list[i]]) + hex_road[list[i]] = t; for (let i = 1; i < list.length; ++i) { let s = to_side_id(list[i-1], list[i]); side_road[s] = t; |