From: Holger Schemel Date: Fri, 15 Apr 2022 10:20:22 +0000 (+0200) Subject: fixed checking artwork set for compatibility code for new score screens X-Git-Tag: 4.3.2.0~7 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=a83b80746af872fda08896f27e8b38303cd33bb2;p=rocksndiamonds.git fixed checking artwork set for compatibility code for new score screens --- diff --git a/src/init.c b/src/init.c index 136abe6a..727dcf30 100644 --- a/src/init.c +++ b/src/init.c @@ -1966,7 +1966,7 @@ static void InitGraphicCompatibilityInfo(void) // special compatibility handling for "Jue" graphics sets (2007 and 2019) boolean supports_score_info = (menu.draw_xoffset[GAME_MODE_SCOREINFO] != 0); - if (strPrefix(leveldir_current->graphics_set, "jue") && !supports_score_info) + if (strPrefix(artwork.gfx_current_identifier, "jue") && !supports_score_info) { int font_title[] = { @@ -2002,7 +2002,7 @@ static void InitGraphicCompatibilityInfo(void) { for (j = 0; j < 2; j++) { - boolean jue0 = strEqual(leveldir_current->graphics_set, "jue0"); + boolean jue0 = strEqual(artwork.gfx_current_identifier, "jue0"); int font_nr = (j == 0 ? font_text[i] : FONT_ACTIVE(font_text[i])); int font_bitmap_id = font_info[font_nr].special_bitmap_id[mode_old]; int font_yoffset = (jue0 ? 10 : 5);