rnd-20030730-1-src
[rocksndiamonds.git] / src / init.c
index 20a84d1e0b400be248f5db6ff50844f8946a16a5..b4ce8d8917ea41515eba64d48d05e5f17048ca1b 100644 (file)
@@ -758,6 +758,12 @@ static void InitGraphicInfo()
     printf("::: image: '%s'\n", image->token);
 #endif
 
+#if 0
+    printf("::: image # %d: '%s' ['%s']\n",
+          i, image->token,
+          getTokenFromImageID(i));
+#endif
+
     set_graphic_parameters(i, image->parameter);
 
     /* now check if no animation frames are outside of the loaded image */
@@ -998,7 +1004,7 @@ static void InitSoundInfo()
     sound_info[i].loop = FALSE;
 
 #if 0
-    printf("::: sound: '%s'\n", sound->token);
+    printf("::: sound %d: '%s'\n", i, sound->token);
 #endif
 
     /* determine all loop sounds and identify certain sound classes */
@@ -1012,9 +1018,9 @@ static void InitSoundInfo()
                 element_action_info[j].suffix) == 0)
       {
        sound_effect_properties[i] = element_action_info[j].value;
+       sound_info[i].loop = element_action_info[j].is_loop_sound;
 
-       if (element_action_info[j].is_loop_sound)
-         sound_info[i].loop = TRUE;
+       break;
       }
     }