diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-06-04 21:52:04 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-06-04 22:16:11 +0200 |
commit | 329248efeb8681cac69c7db451c4601301d40049 (patch) | |
tree | 2baf5f2bdf46e21436677ed926643bd8c481b084 /tools/parse-layout.js | |
parent | 7680628caef500413c8041fce62cd6e7ddc42029 (diff) | |
download | friedrich-329248efeb8681cac69c7db451c4601301d40049.tar.gz |
Brief movement line in log + movement path on mouse-over.
Diffstat (limited to 'tools/parse-layout.js')
-rw-r--r-- | tools/parse-layout.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/parse-layout.js b/tools/parse-layout.js index 3e6cf0f..e327867 100644 --- a/tools/parse-layout.js +++ b/tools/parse-layout.js @@ -309,7 +309,7 @@ for (let key in points) { x: Math.round(x), y: Math.round(y), adjacent: [], - major_roads: [], + main_roads: [], roads: [], }) } else { @@ -345,11 +345,11 @@ cities.sort((a,b) => { return b.y - a.y }) -for (let e of edges.major_road) { +for (let e of edges.main_road) { let a = find_closest_city(e.x1, e.y1) let b = find_closest_city(e.x2, e.y2) - set_add(cities[a].major_roads, b) - set_add(cities[b].major_roads, a) + set_add(cities[a].main_roads, b) + set_add(cities[b].main_roads, a) set_add(cities[a].adjacent, b) set_add(cities[b].adjacent, a) } @@ -371,7 +371,7 @@ let arrays = { x: [], y: [], adjacent: [], - major_roads: [], + main_roads: [], roads: [], } |