Skip to content

Commit

Permalink
Honour the regular deprecation message settings for WML deprecation m…
Browse files Browse the repository at this point in the history
…essages
  • Loading branch information
CelticMinstrel committed Mar 5, 2018
1 parent 5fc9d8d commit 1e2512a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions data/lua/wml-tags.lua
Expand Up @@ -893,11 +893,7 @@ function wml_actions.deprecated_message(cfg)
local _ = wesnoth.textdomain "wesnoth"
helper.wml_error(_"Invalid deprecation level (should be 1-4)")
end
wesnoth.deprecated_message(cfg.what, cfg.level, cfg.version, cfg.message or '')
if not wesnoth.game_config.debug then return end
if cfg.level > 1 then
wesnoth.log('wml', cfg.message)
end
wesnoth.deprecation_message(cfg.what, cfg.level, cfg.version, cfg.message or '')
end

function wml_actions.wml_message(cfg)
Expand Down

0 comments on commit 1e2512a

Please sign in to comment.