From 6ef77524ac8ce54e6d33cd6de8933408bef1e02e Mon Sep 17 00:00:00 2001 From: Ulysse Cura Date: Fri, 21 Aug 2026 23:13:07 +0200 Subject: [PATCH] Optimized a little map display... --- src/map.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/map.c b/src/map.c index 2e746ce..7a5847e 100644 --- a/src/map.c +++ b/src/map.c @@ -405,6 +405,8 @@ int map_remove_entities(map_t *map) static inline int draw_tile(uint32_t tile_x, uint32_t tile_y, uint16_t tile_id) { + if(!tile_id) return EXIT_SUCCESS; + rect_t src_frect = { .x = tile_id * TILE_SIZE % game.map->tileset->w, .y = tile_id * TILE_SIZE / game.map->tileset->w * TILE_SIZE,