Don't allow [kill] animate=yes to scroll to units through fog and shroud

Restores 1.12's behaviour.
This commit is contained in:
Iris Morelle 2018-06-04 16:13:56 -04:00
parent 05e053ca43
commit 79812a853e
2 changed files with 3 additions and 1 deletions

View file

@ -18,6 +18,8 @@
### Miscellaneous and bug fixes
* Fixed an occasional crash at the loading screen related to multi-thread
access of the image cache.
* [kill] animate=yes no longer scrolls to units through fog or shroud, thus
matching 1.12's behavior again.
## Version 1.14.2
### Campaigns

View file

@ -42,7 +42,7 @@ function wesnoth.wml_actions.kill(cfg)
wesnoth.fire_event("last breath", death_loc, killer_loc)
end
if cfg.animate and unit.valid == "map" then
wesnoth.scroll_to_tile(death_loc)
wesnoth.scroll_to_tile(death_loc, true)
local anim = wesnoth.create_animator()
local primary = wml.get_child(cfg, "primary_attack")
local secondary = wml.get_child(cfg, "secondary_attack")