From: Holger Schemel Date: Sun, 18 Oct 2020 22:51:14 +0000 (+0200) Subject: renamed variable X-Git-Tag: 4.2.1.0~38 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=cd6f61d38f82d71a0bc9bb7425e097b18f09203b;p=rocksndiamonds.git renamed variable --- diff --git a/src/init.c b/src/init.c index e5df926f..1c715318 100644 --- a/src/init.c +++ b/src/init.c @@ -5909,7 +5909,7 @@ static void InitOverrideArtwork(void) static char *getNewArtworkIdentifier(int type) { - static char *leveldir_current_identifier[3] = { NULL, NULL, NULL }; + static char *last_leveldir_identifier[3] = { NULL, NULL, NULL }; static boolean last_override_level_artwork[3] = { FALSE, FALSE, FALSE }; static boolean last_has_level_artwork_set[3] = { FALSE, FALSE, FALSE }; static boolean initialized[3] = { FALSE, FALSE, FALSE }; @@ -5948,11 +5948,11 @@ static char *getNewArtworkIdentifier(int type) ------------------------------------------------------------ */ // ---------- reload if level set and also artwork set has changed ---------- - if (leveldir_current_identifier[type] != leveldir_identifier && + if (last_leveldir_identifier[type] != leveldir_identifier && (last_has_level_artwork_set[type] || has_level_artwork_set)) artwork_new_identifier = artwork_current_identifier; - leveldir_current_identifier[type] = leveldir_identifier; + last_leveldir_identifier[type] = leveldir_identifier; last_has_level_artwork_set[type] = has_level_artwork_set; // ---------- reload if "override artwork" setting has changed --------------