From: Holger Schemel Date: Wed, 29 Dec 2021 14:50:53 +0000 (+0100) Subject: changed using macros for checking sound and music loops X-Git-Tag: 4.3.1.0~2 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=274876d86fc0cb9af7027df86bf4ac46020c1501 changed using macros for checking sound and music loops --- diff --git a/src/screens.c b/src/screens.c index 54009588..a5b808a1 100644 --- a/src/screens.c +++ b/src/screens.c @@ -3259,7 +3259,7 @@ void HandleInfoScreen_Music(int button) { int sound = list->music; - if (sound_info[sound].loop) + if (IS_LOOP_SOUND(sound)) PlaySoundLoop(sound); else PlaySound(sound); @@ -3270,7 +3270,7 @@ void HandleInfoScreen_Music(int button) { int music = list->music; - if (music_info[music].loop) + if (IS_LOOP_MUSIC(music)) PlayMusicLoop(music); else PlayMusic(music); @@ -3338,7 +3338,7 @@ void HandleInfoScreen_Music(int button) FadeIn(REDRAW_FIELD); } - if (list != NULL && list->is_sound && sound_info[list->music].loop) + if (list != NULL && list->is_sound && IS_LOOP_SOUND(list->music)) PlaySoundLoop(list->music); }