Demote [option] deprecated message to log

This commit is contained in:
Celtic Minstrel 2016-02-13 18:23:07 -05:00
parent 8d6ca11241
commit d28365730b

View file

@ -142,7 +142,7 @@ function wesnoth.wml_actions.message(cfg)
if option.message and not option.image and not option.label then
local message = tostring(option.message)
if message:find("&") or message:find("=") or message:find("*") == 1 then
wesnoth.wml_actions.deprecated_message{message = '[option]message="&image=col1=col2" is deprecated, use new DescriptionWML instead (default, image, label, description)'}
log('[option]message="&image=col1=col2" is deprecated, use new DescriptionWML instead (default, image, label, description)', "warning")
end
-- Legacy format
table.insert(options, option.message)