summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scrape-codex.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scrape-codex.py b/scrape-codex.py
index d4dcb14..3bd6ec0 100644
--- a/scrape-codex.py
+++ b/scrape-codex.py
@@ -87,8 +87,8 @@ def grab(s, n):
max_width = int(xml.split('Width="')[1].split('"')[0])
max_height = int(xml.split('Height="')[1].split('"')[0])
- TILE_W = floor((max_width / ZOOM) / 256) + 1
- TILE_H = floor((max_height / ZOOM) / 256) + 1
+ TILE_W = round((max_width / ZOOM) / 256) + 1
+ TILE_H = round((max_height / ZOOM) / 256) + 1
if TILE_W < TILE_H:
TILE_W += 1
TILE_H += 1