From 1ea4149a4456ab8713dde4fbfcdd446b5762adcf Mon Sep 17 00:00:00 2001 From: Andras Szell Date: Sun, 24 Jun 2018 19:36:25 +0200 Subject: [PATCH] Fix: add redraw to narrator's message so village count is refreshed Fixes: https://forums.wesnoth.org/viewtopic.php?f=21&t=48370 In the tutorial when we occupy the first village the message tells us the village count got incremented, but in the old version it was incremented only afterwards. Non-narrator messages were updated properly. By adding the redraw, narrator messages triggered by capture event produce the same result as other speakers. --- data/lua/wml/message.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/data/lua/wml/message.lua b/data/lua/wml/message.lua index 45f56647b268..8ef340b852d3 100644 --- a/data/lua/wml/message.lua +++ b/data/lua/wml/message.lua @@ -417,6 +417,7 @@ function wesnoth.wml_actions.message(cfg) wesnoth.deselect_hex() -- The speaker is expected to be either nil or a unit later speaker = nil + wesnoth.fire("redraw") else -- Check ~= false, because the default if omitted should be true if cfg.scroll ~= false then