From daf0e6956a392ffb54215156c193924d1b209ba2 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 2 Jun 2023 18:39:25 +0200 Subject: More cutting. --- tools/gendata.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools/gendata.js') diff --git a/tools/gendata.js b/tools/gendata.js index 8595fcd..1ed9bdb 100644 --- a/tools/gendata.js +++ b/tools/gendata.js @@ -156,10 +156,10 @@ const scale = 1 function defloc(region, stronghold, type, name) { let [x, y, w, h] = boxes[name] - x = Math.floor(x * 75 / 300) - y = Math.floor(y * 75 / 300) - w = Math.ceil(w * 75 / 300) - h = Math.ceil(h * 75 / 300) + x = Math.floor(x) + y = Math.floor(y) + w = Math.ceil(w) + h = Math.ceil(h) locmap[name] = locales.length if (stronghold > 0) strongholds.push(locales.length) -- cgit v1.2.3