From 406d76e09ca2973609f0cbdde0173ddbbf29fa09 Mon Sep 17 00:00:00 2001 From: Anonymissimus Date: Sun, 6 Nov 2011 23:22:56 +0000 Subject: [PATCH] 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. --- data/lua/wml/objectives.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/lua/wml/objectives.lua b/data/lua/wml/objectives.lua index 27ac061605e..b62df2a13e1 100644 --- a/data/lua/wml/objectives.lua +++ b/data/lua/wml/objectives.lua @@ -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