summaryrefslogtreecommitdiff
path: root/tools/parse-layout.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/parse-layout.js')
-rw-r--r--tools/parse-layout.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/parse-layout.js b/tools/parse-layout.js
index dba68af..468f83c 100644
--- a/tools/parse-layout.js
+++ b/tools/parse-layout.js
@@ -310,7 +310,7 @@ for (let key in points) {
type: key,
x: Math.round(x),
y: Math.round(y),
- major_roads: [],
+ main_roads: [],
roads: [],
})
} else {
@@ -343,8 +343,8 @@ cities.sort((a,b) => {
for (let e of edges.major_road) {
let a = find_closest_city(e.x1, e.y1)
let b = find_closest_city(e.x2, e.y2)
- cities[a].major_roads.push(b)
- cities[b].major_roads.push(a)
+ cities[a].main_roads.push(b)
+ cities[b].main_roads.push(a)
}
for (let e of edges.road) {
@@ -362,7 +362,7 @@ let arrays = {
// type: [],
x: [],
y: [],
- major_roads: [],
+ main_roads: [],
roads: [],
}