Skip to content

Commit

Permalink
Fix: add redraw to narrator's message so village count is refreshed
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
aszell authored and Vultraz committed Jun 26, 2018
1 parent 902cf6d commit 1ea4149
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data/lua/wml/message.lua
Expand Up @@ -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
Expand Down

0 comments on commit 1ea4149

Please sign in to comment.