From: Holger Schemel Date: Fri, 8 Mar 2024 20:20:20 +0000 (+0100) Subject: fixed crash bug when running in headless mode X-Git-Tag: 4.4.0.0-test-1~228 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=98c783a5e4c5bc5bf520d48ac20898970291b3d5;p=rocksndiamonds.git fixed crash bug when running in headless mode --- diff --git a/src/game_bd/bd_graphics.c b/src/game_bd/bd_graphics.c index b122219a..bb3fb894 100644 --- a/src/game_bd/bd_graphics.c +++ b/src/game_bd/bd_graphics.c @@ -457,6 +457,9 @@ void gd_prepare_tile_bitmap(GdCave *cave, Bitmap *bitmap, int scale_down_factor) static Bitmap *gd_tile_bitmap_original = NULL; static int scale_down_factor_last = -1; + if (program.headless) + return; + // check if tile bitmap has changed (different artwork or tile size selected) if (bitmap != gd_tile_bitmap_original || scale_down_factor != scale_down_factor_last) {