X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_bd%2Fbd_graphics.c;h=fb702375886ec86b17faa1914a0706d97ed019cd;hb=2fcb3bc570e89514d8210f3daf3918df80283b9e;hp=96e9b20c2fb277d542de9386d9082ee736ee440a;hpb=a3edb6437b8864290bab53bfc3bd1da9595879c1;p=rocksndiamonds.git diff --git a/src/game_bd/bd_graphics.c b/src/game_bd/bd_graphics.c index 96e9b20c..fb702375 100644 --- a/src/game_bd/bd_graphics.c +++ b/src/game_bd/bd_graphics.c @@ -363,6 +363,11 @@ static boolean surface_has_c64_colors(SDL_Surface *surface) return has_c64_colors; } +boolean gd_bitmap_has_c64_colors(Bitmap *bitmap) +{ + return surface_has_c64_colors(bitmap->surface); +} + // sets one of the colors in the indexed palette of an sdl surface to a GdColor. static void set_surface_palette_color(SDL_Surface *surface, int index, GdColor col) { @@ -631,6 +636,10 @@ static void gd_drawcave_tile(Bitmap *dest, GdGame *game, int x, int y, boolean d if (cave->player_state == GD_PL_EXITED) use_smooth_movements = FALSE; + // do not use smooth movement animation for player stirring the pot + if (tile == O_PLAYER_STIRRING) + use_smooth_movements = FALSE; + #if DO_GFX_SANITY_CHECK if (use_native_bd_graphics_engine() && !setup.small_game_graphics && !program.headless) {