Skip to content

Commit

Permalink
Don't allow [kill] animate=yes to scroll to units through fog and shroud
Browse files Browse the repository at this point in the history
Restores 1.12's behaviour.

(cherry-picked from commit 4e37cdc)
  • Loading branch information
irydacea committed Oct 7, 2018
1 parent 8d282c9 commit 5c04fe7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelog.md
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion data/lua/wml/kill.lua
Expand Up @@ -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")
Expand Down

0 comments on commit 5c04fe7

Please sign in to comment.