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:
parent
c3628a1537
commit
406d76e09c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue