X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fconf_snd.c;h=07ce6b44d464a7ec307ebaaf32fdd80ec28de583;hp=c402cf8a4ffd7a20790fa915f136dfcf235fbece;hb=ee0895b12e544444db37febb1242bcc8a72d6ad8;hpb=69eca5c908598155bf3f5d1fa74e73ff9e2bbbc9 diff --git a/src/conf_snd.c b/src/conf_snd.c index c402cf8a..07ce6b44 100644 --- a/src/conf_snd.c +++ b/src/conf_snd.c @@ -12,13 +12,18 @@ ***********************************************************/ #include "libgame/libgame.h" +#include "main.h" +/* List values that are not defined in the configuration file are set to + reliable default values. If that value is GFX_ARG_UNDEFINED, it will + be dynamically determined, using some of the other list values. */ + struct ConfigInfo sound_config_suffix[] = { - { ".mode_loop", "0", TYPE_BOOLEAN }, + { ".mode_loop", ARG_UNDEFINED, TYPE_BOOLEAN }, - { NULL, NULL, 0 } + { NULL, NULL, 0 } }; struct ConfigInfo sound_config[] = @@ -98,7 +103,8 @@ struct ConfigInfo sound_config[] = { "yamyam.moving", SND_FILE_UNDEFINED }, { "yamyam.waiting", "njam.wav" }, { "yamyam.eating", SND_FILE_UNDEFINED }, - { "robot.stepping", "schlurf.wav" }, + { "robot.moving", "schlurf.wav" }, + { "robot.moving.mode_loop", "false" }, { "robot.waiting", SND_FILE_UNDEFINED }, { "robot_wheel.activating", "deng.wav" }, { "robot_wheel.active", "miep.wav" },