X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=b4ce8d8917ea41515eba64d48d05e5f17048ca1b;hb=2bcba5d4d363ba2f58c9d3f22aba6a455522f499;hp=20a84d1e0b400be248f5db6ff50844f8946a16a5;hpb=268045d6b06349f1cf10d5cc6f9516b5caa20dea;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index 20a84d1e..b4ce8d89 100644 --- a/src/init.c +++ b/src/init.c @@ -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; } }