Added inline SLF support in [scroll_to]
This commit is contained in:
parent
9e73a91c29
commit
e7bcf1aba1
2 changed files with 4 additions and 3 deletions
|
@ -95,6 +95,7 @@ Version 1.11.0-svn:
|
|||
This also adds SSF support in [store_villages].
|
||||
* Added support for resistance_multiplier= key in [harm_unit]
|
||||
* Fixed bug #19498: [modify_unit] duplicating units if x,y changed
|
||||
* Added inline SLF support in [scroll_to], by using the first matching location
|
||||
* Miscellaneous and bug fixes:
|
||||
* Fix wrong preferences path suffix (1.1 instead of 1.10) on Linux and other
|
||||
platforms using XDG layout (no compiled-in preferences path override,
|
||||
|
|
|
@ -348,9 +348,9 @@ function wml_actions.switch(cfg)
|
|||
end
|
||||
|
||||
function wml_actions.scroll_to(cfg)
|
||||
local x = tonumber(cfg.x) or helper.wml_error("invalid x= in [scroll_to]")
|
||||
local y = tonumber(cfg.y) or helper.wml_error("invalid y= in [scroll_to]")
|
||||
wesnoth.scroll_to_tile(x, y, cfg.check_fogged)
|
||||
local loc = wesnoth.get_locations( cfg )[1]
|
||||
if not loc then return end
|
||||
wesnoth.scroll_to_tile( loc[1], loc[2], cfg.check_fogged )
|
||||
end
|
||||
|
||||
function wml_actions.scroll_to_unit(cfg)
|
||||
|
|
Loading…
Add table
Reference in a new issue