Moved [delay] implementation to Lua. (Fix for bug #16755.)
This commit is contained in:
parent
c3f2f750bb
commit
66039820b4
2 changed files with 6 additions and 7 deletions
|
@ -539,3 +539,9 @@ function wml_actions.terrain(cfg)
|
|||
wesnoth.set_terrain(loc[1], loc[2], terrain, cfg.layer, cfg.replace_if_failed)
|
||||
end
|
||||
end
|
||||
|
||||
function wml_actions.delay(cfg)
|
||||
local delay = tonumber(cfg.time) or
|
||||
helper.wml_error "[delay] missing required time= attribute."
|
||||
wesnoth.delay(delay)
|
||||
end
|
||||
|
|
|
@ -727,13 +727,6 @@ WML_HANDLER_FUNCTION(colour_adjust, /*event_info*/, cfg)
|
|||
color_adjust(cfg);
|
||||
}
|
||||
|
||||
|
||||
WML_HANDLER_FUNCTION(delay, /*event_info*/, cfg)
|
||||
{
|
||||
game_display &screen = *resources::screen;
|
||||
screen.delay(cfg["time"]);
|
||||
}
|
||||
|
||||
WML_HANDLER_FUNCTION(scroll, /*event_info*/, cfg)
|
||||
{
|
||||
game_display &screen = *resources::screen;
|
||||
|
|
Loading…
Add table
Reference in a new issue