wc: Fix untranslatable scenario name

This commit is contained in:
gfgtdf 2023-03-25 20:20:29 +01:00
parent 5bb6cdd8a4
commit 98324ee4c2
2 changed files with 4 additions and 4 deletions

View file

@ -126,13 +126,13 @@ function wc_ii_generate_scenario(nplayers, gen_args)
-- set the correct scenario name.
if scenario_num == 1 then --first map
scenario.name = "WC_II_" .. nplayers .. " - " .. _"Start"
scenario.name = (gen_args.config_name or "World Conquest") .. " - " .. _"Start"
else
local scenario_desc = _ "Scenario" .. scenario_num
local scenario_desc = _ "Scenario" .. " ".. scenario_num
if scenario_num == 5 then
scenario_desc = _"Final Battle"
end
scenario.name = "WC_II_" .. nplayers .. " " .. scenario_desc .. " - "--.. scenario.map_name
scenario.name = (gen_args.config_name or "World Conquest") .. " - " .. scenario_desc .. " - " .. (scenario.name or "")
end
local res = wc2_convert.lon_to_wml(scenario, "scenario")

View file

@ -107,5 +107,5 @@ function set_terrain(a)
end
function set_map_name(str)
scenario_data.map_name = str
scenario_data.scenario.name = str
end