X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Fgraphics.c;h=29d9e15d9d19d5ca3f39c1051c87b0028335045f;hb=ac4f3272beb264e6642bc84c44f3dc08e22680f2;hp=124be8fdd1378168c80b93b9f3c77a79477fa88c;hpb=54d813e45f3e66dc0ecd1fae0da578503e5c9277;p=rocksndiamonds.git diff --git a/src/game_em/graphics.c b/src/game_em/graphics.c index 124be8fd..29d9e15d 100644 --- a/src/game_em/graphics.c +++ b/src/game_em/graphics.c @@ -354,7 +354,8 @@ static void animscreen(void) if (!game.use_native_emc_graphics_engine) for (y = 2; y < EM_MAX_CAVE_HEIGHT - 2; y++) for (x = 2; x < EM_MAX_CAVE_WIDTH - 2; x++) - SetGfxAnimation_EM(Draw[y][x], 7 - frame, x - 2, y - 2); + SetGfxAnimation_EM(&graphic_info_em_object[Draw[y][x]][frame], + Draw[y][x], 7 - frame, x - 2, y - 2); for (y = top; y < top + MAX_BUF_YSIZE; y++) { @@ -391,9 +392,11 @@ static void animscreen(void) redraw_screen_tile = (screentiles[sy][sx] != obj || crumbled_state[sy][sx] != crm); +#if 0 /* !!! TEST ONLY -- CHANGE THIS !!! */ if (!game.use_native_emc_graphics_engine) redraw_screen_tile = TRUE; +#endif /* only redraw screen tiles if they (or their crumbled state) changed */ if (redraw_screen_tile)