add a comment describing the .colour warning from [store_side]...

This commit is contained in:
Anonymissimus 2011-09-27 23:02:30 +00:00
parent 26eee3b6ba
commit 8cc18af32a

View file

@ -888,6 +888,8 @@ function wml_actions.store_side(cfg)
-- deprecated starting with 1.9.0
-- added message starting with 1.9.7
-- assuming that a wml author will usually be in debug mode and a player will not...
-- Since there is no way to forsee (or to detect later) whether the wml author uses the .colour field,
-- emit a warning anyway since a false positive should be less problematic than no warning at all.
if wesnoth.game_config.debug then
wesnoth.message("warning", string.format("$%s.colour is deprecated, use $%s.color (if needed)", variable, variable))
end