From 274876d86fc0cb9af7027df86bf4ac46020c1501 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Wed, 29 Dec 2021 15:50:53 +0100 Subject: [PATCH] changed using macros for checking sound and music loops --- src/screens.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } -- 2.34.1