- InitImageList(image_config, image_config_suffix, NUM_IMAGE_FILES);
- InitSoundList(sound_config, sound_config_suffix, NUM_SOUND_FILES);
+ static char *element_prefix[MAX_NUM_ELEMENTS + 1];
+ static char *sound_class_prefix[MAX_NUM_ELEMENTS + 1];
+ static char *action_suffix[NUM_ACTIONS + 1];
+ static char *direction_suffix[NUM_DIRECTIONS + 1];
+ static char *special_suffix[NUM_SPECIAL_GFX_ARGS + 1];
+ static char *dummy[1] = { NULL };
+ int i;
+
+ for (i=0; i<MAX_NUM_ELEMENTS + 1; i++)
+ element_prefix[i] = element_info[i].token_name;
+ for (i=0; i<MAX_NUM_ELEMENTS + 1; i++)
+ sound_class_prefix[i] = element_info[i].sound_class_name;
+ for (i=0; i<NUM_ACTIONS + 1; i++)
+ action_suffix[i] = element_action_info[i].suffix;
+ for (i=0; i<NUM_DIRECTIONS + 1; i++)
+ direction_suffix[i] = element_direction_info[i].suffix;
+ for (i=0; i<NUM_SPECIAL_GFX_ARGS + 1; i++)
+ special_suffix[i] = special_suffix_info[i].suffix;
+
+ InitImageList(image_config, NUM_IMAGE_FILES, image_config_suffix,
+ element_prefix, action_suffix,direction_suffix,special_suffix);
+ InitSoundList(sound_config, NUM_SOUND_FILES, sound_config_suffix,
+ sound_class_prefix, action_suffix, dummy, dummy);