Skip to content

Commit

Permalink
Do not allow [message] to scroll to units through fog/shroud
Browse files Browse the repository at this point in the history
This was a regression from 1.12.
  • Loading branch information
irydacea committed May 22, 2018
1 parent df782f5 commit 8ae38ac
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 @@ -192,6 +192,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
Expand Down
2 changes: 1 addition & 1 deletion data/lua/wml/message.lua
Expand Up @@ -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)
Expand Down

0 comments on commit 8ae38ac

Please sign in to comment.