projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20030730-1-src
[rocksndiamonds.git]
/
src
/
init.c
diff --git
a/src/init.c
b/src/init.c
index 20a84d1e0b400be248f5db6ff50844f8946a16a5..b4ce8d8917ea41515eba64d48d05e5f17048ca1b 100644
(file)
--- a/
src/init.c
+++ b/
src/init.c
@@
-758,6
+758,12
@@
static void InitGraphicInfo()
printf("::: image: '%s'\n", image->token);
#endif
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 */
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
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 */
#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;
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;
}
}
}
}