Suppress deprecation messages unless in debug mode
This commit is contained in:
parent
a1b9469eed
commit
15ec939fe0
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue