Do not allow [message] to scroll to units through fog/shroud

This was a regression from 1.12.

(cherry-picked from commit 8ae38ac19f)
This commit is contained in:
Iris Morelle 2018-05-21 23:20:41 -04:00
parent 8f0cb83d8c
commit 56cba5aacf
2 changed files with 3 additions and 1 deletions

View file

@ -191,6 +191,8 @@
* Added stricter validation to ensure units cannot have negative hitpoints,
except during specific attack-related events.
* Added deprecation notices for several macros that had them missing before.
* [message] no longer scrolls to units through fog or shroud so it matches
1.12's behavior.
## Version 1.13.12
### Security fixes

View file

@ -416,7 +416,7 @@ function wesnoth.wml_actions.message(cfg)
else
-- Check ~= false, because the default if omitted should be true
if cfg.scroll ~= false then
wesnoth.scroll_to_tile(speaker.x, speaker.y, false, false, true)
wesnoth.scroll_to_tile(speaker.x, speaker.y, true, false, true)
end
wesnoth.highlight_hex(speaker.x, speaker.y)