From b4c728ae9b8a96293257048096464edcc363bda4 Mon Sep 17 00:00:00 2001 From: joric Date: Tue, 24 Dec 2024 14:34:26 +0500 Subject: [PATCH] updated files --- scripts/vt_simple.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/vt_simple.py b/scripts/vt_simple.py index 2cb28be..b6abac0 100644 --- a/scripts/vt_simple.py +++ b/scripts/vt_simple.py @@ -45,7 +45,7 @@ def MortonCode2(x): return x def get_tile(x, y): - if h == 65536: y = (y + 8192//th) % (65536//th) # wrapping fix + if h == 65536: y = (y + 64) % 512 # wrapping fix i = MortonCode2(x) | (MortonCode2(y) << 1) f.seek(4 + i * span_size, os.SEEK_SET) data = f.read(span_size)