aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-04-05 10:16:17 -0400
committeriamcheeseman <[email protected]>2026-04-05 10:16:17 -0400
commite321a6c5bc099708a581d8cc875df5b4b5574e25 (patch)
tree92b6c21b04db5e18e505dedd80809451ff5c6336 /src
parent779fc71a8be224c22c7e650983d7af4c06854138 (diff)
fix: draw tiles at a rounded position
Potentially not needed, but it is good to be sure.
Diffstat (limited to 'src')
-rw-r--r--src/objs/tilemap.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/objs/tilemap.lua b/src/objs/tilemap.lua
index 90b8c8a..0d7e17d 100644
--- a/src/objs/tilemap.lua
+++ b/src/objs/tilemap.lua
@@ -122,7 +122,7 @@ function tilemap_draw_sys(tilemap)
for i = 1, tilemap.cachesize do
local tile = tilemap.cache[i]
TILE_QUAD:setViewport(tile.tex_x, tile.tex_y, TILESIZE, TILESIZE)
- lg.draw(TILE_TEX, TILE_QUAD, tile.x, tile.y)
+ lg.draw(TILE_TEX, TILE_QUAD, round(tile.x), round(tile.y))
end
end