From 173654e0bd8140b1ca3867763dbb818afe42c202 Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Wed, 19 Feb 2025 11:26:07 +0100 Subject: [PATCH] - [FIX] map.draw no agafava be el tamany de la surface --- mini.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mini.cpp b/mini.cpp index 6ab7655..07f3ea6 100644 --- a/mini.cpp +++ b/mini.cpp @@ -1035,8 +1035,8 @@ void mset(int celx, int cely, uint8_t snum) { void map() { //int celx, int cely, int sx, int sy, uint8_t celw, uint8_t celh, uint8_t layer) { if (map_surface==NULL) return; - uint8_t celw = map_surface->w >> 3; - uint8_t celh = map_surface->h >> 3; + uint8_t celw = map_surface->w;// >> 3; + uint8_t celh = map_surface->h;// >> 3; int celx = 0; int cely = 0; //if (celw <= 0 || celh <= 0 || celw >= TILES_WIDTH || celh >= TILES_HEIGHT) return;