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.

(cherry-picked from commit 1ea4149a44)
This commit is contained in:
Andras Szell 2018-06-24 19:36:25 +02:00 committed by Charles Dang
parent 826a76a939
commit a2a22ae10b

View file

@ -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