[sound_source] now starts playing the sound immediately

This commit is contained in:
Celtic Minstrel 2017-05-11 18:57:55 -04:00
parent a5ec607b54
commit cee3698fae
2 changed files with 2 additions and 0 deletions

View file

@ -154,6 +154,7 @@ Version 1.13.7+dev:
* Standard Weapon Filter has new special_active key
* [animate_unit] now raises an error if the flag key is missing
* Fix [set_variable][join] not working with translatable strings
* [sound_source] now starts playing the sound immediately
* Miscellaneous and bug fixes:
* Fixed base animation showing on walking corpse & soulless bats
(bug #25673)

View file

@ -3761,6 +3761,7 @@ int game_lua_kernel::intf_add_sound_source(lua_State *L)
try {
soundsource::sourcespec spec(cfg);
man->add(spec);
man->update();
} catch (bad_lexical_cast &) {
ERR_LUA << "Error when parsing sound_source config: invalid parameter." << std::endl;
ERR_LUA << "sound_source config was: " << cfg.debug() << std::endl;