- [FIX] map.draw no agafava be el tamany de la surface
This commit is contained in:
4
mini.cpp
4
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) {
|
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user