Skip to content

Commit

Permalink
updated files
Browse files Browse the repository at this point in the history
  • Loading branch information
joric committed Dec 24, 2024
1 parent 3a66d10 commit b4c728a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/vt_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b4c728a

Please sign in to comment.