Don't allow [kill] animate=yes to scroll to units through fog and shroud
Restores 1.12's behaviour.
(cherry-picked from commit 4e37cdc713
)
This commit is contained in:
parent
8d282c97af
commit
5c04fe72d5
2 changed files with 3 additions and 1 deletions
|
@ -225,6 +225,8 @@
|
|||
* Fixed many crashes and out-of-sync errors when using the planning mode.
|
||||
* 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.13.12
|
||||
### Security fixes
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue