From: Holger Schemel Date: Tue, 12 Dec 2023 11:20:53 +0000 (+0100) Subject: fixed bug caused by support for only eight global animations in the past X-Git-Tag: 4.3.8.1~8 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=263c1f057f081555ae53ad16d9b65ea026180441;p=rocksndiamonds.git fixed bug caused by support for only eight global animations in the past --- diff --git a/src/init.c b/src/init.c index f9e46b4f..af11e4c7 100644 --- a/src/init.c +++ b/src/init.c @@ -1649,7 +1649,7 @@ static void set_graphic_parameters_ext(int graphic, int *parameter, g->draw_yoffset = parameter[GFX_ARG_DRAW_YOFFSET]; // use a different default value for global animations and toons - if ((graphic >= IMG_GFX_GLOBAL_ANIM_1 && graphic <= IMG_GFX_GLOBAL_ANIM_8) || + if ((graphic >= IMG_GFX_GLOBAL_ANIM_1 && graphic <= IMG_GFX_GLOBAL_ANIM_32) || (graphic >= IMG_TOON_1 && graphic <= IMG_TOON_20)) g->draw_masked = TRUE;