X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=26f0268c0481651f6f93b384e7bea57cf4513cfd;hb=0cccb6d03df991d9c978ef3f7e16aadf3470a49b;hp=38aec9ae656aab1e178dc3bd8fb376a431eb44ca;hpb=87f531efe267aa3d6a27cc3a68c68c1a4df7b18b;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index 38aec9ae..26f0268c 100644 --- a/src/init.c +++ b/src/init.c @@ -453,48 +453,28 @@ void ReloadCustomArtwork() snd_new_identifier = identifier_new; if (getTreeInfoFromIdentifier(artwork.mus_first, identifier_new) != getTreeInfoFromIdentifier(artwork.mus_first, identifier_new)) - artwork.mus_current_identifier = NULL; + mus_new_identifier = identifier_new; leveldir_current_identifier = leveldir_current->identifier; } /* custom level artwork configured in level series configuration file always overrides custom level artwork stored in level series directory - and (level independant) custom artwork configured in setup menue - (the path entry is needed to send it to the sound child process) */ + and (level independant) custom artwork configured in setup menue */ if (leveldir_current->graphics_set != NULL) - { - if (leveldir_current->graphics_path) - free(leveldir_current->graphics_path); - leveldir_current->graphics_path = NULL; - leveldir_current->graphics_path = - getStringCopy(getLevelArtworkDir(artwork.gfx_first)); gfx_new_identifier = leveldir_current->graphics_set; - } if (leveldir_current->sounds_set != NULL) - { - if (leveldir_current->sounds_path) - free(leveldir_current->sounds_path); - leveldir_current->sounds_path = NULL; - leveldir_current->sounds_path = - getStringCopy(getLevelArtworkDir(artwork.snd_first)); snd_new_identifier = leveldir_current->sounds_set; - } if (leveldir_current->music_set != NULL) - { - if (leveldir_current->music_path) - free(leveldir_current->music_path); - leveldir_current->music_path = NULL; - leveldir_current->music_path = - getStringCopy(getLevelArtworkDir(artwork.mus_first)); mus_new_identifier = leveldir_current->music_set; - } if (strcmp(artwork.gfx_current_identifier, gfx_new_identifier) != 0 || last_override_level_graphics != setup.override_level_graphics) { int i; + setLevelArtworkDir(artwork.gfx_first); + ClearRectangle(window, 0, 0, WIN_XSIZE, WIN_YSIZE); for(i=0; i