projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7812c16
)
fixed crash bug when running in headless mode
author
Holger Schemel
<info@artsoft.org>
Fri, 8 Mar 2024 20:20:20 +0000
(21:20 +0100)
committer
Holger Schemel
<info@artsoft.org>
Fri, 8 Mar 2024 20:20:20 +0000
(21:20 +0100)
src/game_bd/bd_graphics.c
patch
|
blob
|
history
diff --git
a/src/game_bd/bd_graphics.c
b/src/game_bd/bd_graphics.c
index b122219a6284575695f305040db1560830ccf96d..bb3fb894d17673094d072e7cbcabfe34b6563287 100644
(file)
--- 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)
{