mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 18:48:44 +00:00
Show a deprecation message for [event]remove=yes, recommend [remove_event]
The remove attribute for [event] was never added to the validation schema, and using [remove_event] seems easier to search WML for. Let's just recommend the new key and deprecate the old one.
This commit is contained in:
parent
1575457a3b
commit
28cd5f1e6e
@ -766,6 +766,7 @@ end
|
||||
|
||||
function wml_actions.event(cfg)
|
||||
if cfg.remove then
|
||||
wesnoth.deprecated_message("[event]remove=yes", 2, "1.17.0", "Use [remove_event] instead of [event]remove=yes")
|
||||
wml_actions.remove_event(cfg)
|
||||
else
|
||||
wesnoth.add_event_handler(cfg)
|
||||
|
Loading…
x
Reference in New Issue
Block a user