changed using macros for checking sound and music loops
authorHolger Schemel <info@artsoft.org>
Wed, 29 Dec 2021 14:50:53 +0000 (15:50 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 22 Jan 2022 16:58:30 +0000 (17:58 +0100)
src/screens.c

index 5400958815c89125710267d08644d2093215f24e..a5b808a1969462bac0a1bc7b1aefd001a1b49cb3 100644 (file)
@@ -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);
 }