- [FIX] map.draw no agafava be el tamany de la surface

This commit is contained in:
2025-02-19 11:26:07 +01:00
parent ba1daf810d
commit 173654e0bd

View File

@@ -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) { void map() { //int celx, int cely, int sx, int sy, uint8_t celw, uint8_t celh, uint8_t layer) {
if (map_surface==NULL) return; if (map_surface==NULL) return;
uint8_t celw = map_surface->w >> 3; uint8_t celw = map_surface->w;// >> 3;
uint8_t celh = map_surface->h >> 3; uint8_t celh = map_surface->h;// >> 3;
int celx = 0; int celx = 0;
int cely = 0; int cely = 0;
//if (celw <= 0 || celh <= 0 || celw >= TILES_WIDTH || celh >= TILES_HEIGHT) return; //if (celw <= 0 || celh <= 0 || celw >= TILES_WIDTH || celh >= TILES_HEIGHT) return;