From d562c7b33958353e61b2b58555412900768de4d0 Mon Sep 17 00:00:00 2001 From: Ulysse Cura Date: Wed, 9 Sep 2026 15:27:46 +0200 Subject: [PATCH] Fixed typo in map display. --- core/map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/map.c b/core/map.c index 737bbf2..300529e 100644 --- a/core/map.c +++ b/core/map.c @@ -407,7 +407,7 @@ static inline int draw_tile(uint16_t tile_x, uint16_t tile_y, uint16_t tile_id) rect_t src_frect = { .x = tile_id * TILE_SIZE % get_width(game.map->tileset), - .y = tile_id * TILE_SIZE / get_height(game.map->tileset) * TILE_SIZE, + .y = tile_id * TILE_SIZE / get_width(game.map->tileset) * TILE_SIZE, .w = TILE_SIZE, .h = TILE_SIZE };