summaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-08-03 16:37:48 +1000
committerquou <quou@disroot.org>2024-08-03 16:37:48 +1000
commit125be3c1880d9f64580bf9c753dd85c5cbc1cfc4 (patch)
tree82cba7f0b3b0dc39d30f5490e627d869703d2b72 /render.c
parentb2f18b6c47eb15d35b632f36cee0c89207755018 (diff)
Add helpers for getting map tiles
Diffstat (limited to 'render.c')
-rw-r--r--render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/render.c b/render.c
index 32ca500..13eb99e 100644
--- a/render.c
+++ b/render.c
@@ -758,7 +758,7 @@ void ren_map(
const int* left
) {
int x, y, w, h, hh, hhi, ey;
- const int* data = (const int*)&map[1];
+ const Map_Tile* data = map_tilesc(map);
/* temp */
const Texture* texture = get_texture(asset_id_brick_texture);
const Texture* ceiling = get_texture(asset_id_floorboardsbot_texture);