From 8ae38ac19fa48ec9c380a9bce49c17dc43be9a05 Mon Sep 17 00:00:00 2001 From: Iris Morelle Date: Mon, 21 May 2018 23:20:41 -0400 Subject: [PATCH] Do not allow [message] to scroll to units through fog/shroud This was a regression from 1.12. --- changelog.md | 2 ++ data/lua/wml/message.lua | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index fea30b8ae5bc..e106b8ef16df 100644 --- a/changelog.md +++ b/changelog.md @@ -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 diff --git a/data/lua/wml/message.lua b/data/lua/wml/message.lua index 2f2eec664afd..b5412c016026 100644 --- a/data/lua/wml/message.lua +++ b/data/lua/wml/message.lua @@ -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)