Suppress deprecation messages unless in debug mode

This commit is contained in:
Celtic Minstrel 2016-05-11 14:12:11 -04:00
parent a1b9469eed
commit 15ec939fe0

View file

@ -1013,6 +1013,7 @@ function wml_actions.sound_source(cfg)
end
function wml_actions.deprecated_message(cfg)
if not wesnoth.game_config.debug then return end
wesnoth.log('wml', cfg.message)
end