disable turn over advantage for campaigns by default

For campaigns (sp and mp) which are usually coop campaigns you usually
don't want the turns over advantage message. So we disable it by default
for campaigns. It is still possible to (de-)activate is manually by
setting the wml variable show_turns_over_advantage to yes/no
This commit is contained in:
gfgtdf 2015-06-16 01:18:43 +02:00
parent c2071fca13
commit 219bb24b30

View file

@ -83,6 +83,13 @@
[lua]
# wmllint: markcheck off
code=<<
local show_turns_over_advantage = wesnoth.get_variable("show_turns_over_advantage")
if show_turns_over_advantage == nil then
show_turns_over_advantage = wesnoth.game_config.mp_settings and (wesnoth.game_config.mp_settings.mp_campaign == "")
end
if not show_turns_over_advantage then
return
end
local _ = wesnoth.textdomain "wesnoth-multiplayer"
local function all_sides()
local function f(s, i)