summaryrefslogtreecommitdiff
path: root/tools/gendata.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gendata.js')
-rw-r--r--tools/gendata.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gendata.js b/tools/gendata.js
index 93a72d5..d6efbc5 100644
--- a/tools/gendata.js
+++ b/tools/gendata.js
@@ -385,8 +385,8 @@ function def_town(name) {
}
function def_loc(type, econ, cities, depts) {
- let name = cities.join(" / ")
- let loc_names = cities.concat(depts)
+ let name = cities.slice().sort().join("-") + " LoC"
+ let loc_names = cities.concat(depts).sort()
for (let n of loc_names)
if (space_name.indexOf(n) < 0)
console.log("not a space: " + n)