Author: anonymissimus
Date: Mon Nov 7 00:22:56 2011
New Revision: 51906
URL: http://svn.gna.org/viewcvs/wesnoth?rev=51906&view=rev
Log:
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.
Modified:
trunk/data/lua/wml/objectives.lua
Modified: trunk/data/lua/wml/objectives.lua
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/lua/wml/objectives.lua?rev=51906&r1=51905&r2=51906&view=diff
==============================================================================
--- trunk/data/lua/wml/objectives.lua (original)
+++ trunk/data/lua/wml/objectives.lua Mon Nov 7 00:22:56 2011
@@ -180,12 +180,12 @@
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
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits