summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/gendata.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/gendata.js b/tools/gendata.js
index 05ac486..9505548 100644
--- a/tools/gendata.js
+++ b/tools/gendata.js
@@ -123,10 +123,10 @@ let strongholds = []
function defloc(region, stronghold, type, name) {
let [x, y, w, h] = boxes[name]
- x = Math.round(x * scale)
- y = Math.round(y * scale)
- w = Math.round(w * scale)
- h = Math.round(h * scale)
+ x = Math.floor(x * 75 / 300)
+ y = Math.floor(y * 75 / 300)
+ w = Math.ceil(w * 75 / 300)
+ h = Math.ceil(h * 75 / 300)
locmap[name] = locales.length
let vp = vp_map[type]
let walls = wall_map[type]