set team.objectives_changed differently (fix for bug #18927)

In multiplayer, scenarios have default objectives sent from the host
to the other clients as [scenario]objectives= t_string, and this doesn't
know about silent= but must be shown anyway.
This commit is contained in:
Anonymissimus 2011-11-06 23:22:56 +00:00
parent c3628a1537
commit 406d76e09c

View file

@ -180,12 +180,12 @@ function wml_actions.objectives(cfg)
if side == 0 then
for side, team in ipairs(wesnoth.sides) do
team.objectives = objectives
if not silent then team.objectives_changed = true end
team.objectives_changed = not silent
end
else
local team = wesnoth.sides[side]
team.objectives = objectives
if not silent then team.objectives_changed = true end
team.objectives_changed = not silent
end
end