X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Fgraphics.c;h=548b24db1c7e29680e687fa64fa1b9673665e04d;hb=dd11b3af00799f1dcd34481281bb219216ac9a4b;hp=c6c1d5428496dbe0b89699251ca694dfbe2a7e96;hpb=52ae89df67ad56dbb6302fd9e85ad45279554a4c;p=rocksndiamonds.git diff --git a/src/game_em/graphics.c b/src/game_em/graphics.c index c6c1d542..548b24db 100644 --- a/src/game_em/graphics.c +++ b/src/game_em/graphics.c @@ -300,8 +300,8 @@ static void animscreen(void) }; if (!game.use_native_emc_graphics_engine) - for (y = 2; y < CAVE_HEIGHT - 2; y++) - for (x = 2; x < CAVE_WIDTH - 2; x++) + for (y = 2; y < CAVE_BUFFER_HEIGHT - 2; y++) + for (x = 2; x < CAVE_BUFFER_WIDTH - 2; x++) SetGfxAnimation_EM(&graphic_info_em_object[lev.draw[x][y]][frame], lev.draw[x][y], 7 - frame, x - 2, y - 2); @@ -326,8 +326,8 @@ static void animscreen(void) int yy = y + xy[i][1]; int tile_next; - if (xx < 0 || xx >= CAVE_WIDTH || - yy < 0 || yy >= CAVE_HEIGHT) + if (xx < 0 || xx >= CAVE_BUFFER_WIDTH || + yy < 0 || yy >= CAVE_BUFFER_HEIGHT) continue; tile_next = lev.draw[xx][yy];