Skip to content

Commit

Permalink
workaround to type problem in frogatto
Browse files Browse the repository at this point in the history
  • Loading branch information
davewx7 committed Nov 22, 2018
1 parent 794cd9a commit dc507aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/gui/data/classes/sound.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -122,16 +122,18 @@
play_prepared_sound: "def(custom_obj obj, PreparedSound sfx, string sound_name) ->commands
if(is_embargoed(obj, sound_name) = false,
[
/* //TODO: Work out why this doesn't work, some type error.
if(strstr(sfx.sound.filename, 'voices') != 0,
set(voice_embargoes[sfx.sound.filename], true)
),
if(log_sounds,
if(logger,
if(logger != null, null
logger.add_entry(obj, sound_name, sfx.sound.filename)
)
where logger = find((level<- obj.level).chars, value is obj sound_log)
),
*/
sfx.sound.play(),
Expand Down

0 comments on commit dc507aa

Please sign in to comment.