WC: The indentation of the generator Lua was weird
This commit is contained in:
parent
9a3143215b
commit
163bb2f52d
1 changed files with 25 additions and 25 deletions
|
@ -39,35 +39,35 @@ _ "World Conquest 3p" #enddef
|
|||
id="WC_II_{PLAYERS}p"
|
||||
config_name={WC_II_CAMPAIGN_NAME_{PLAYERS}P} + ""
|
||||
create_scenario = "
|
||||
local a = ...
|
||||
local function doit()
|
||||
wesnoth.dofile('campaigns/World_Conquest//lua/map/main.lua'); return wc_ii_generate_scenario({PLAYERS}, a)
|
||||
end
|
||||
local a = ...
|
||||
local function doit()
|
||||
wesnoth.dofile('campaigns/World_Conquest//lua/map/main.lua'); return wc_ii_generate_scenario({PLAYERS}, a)
|
||||
end
|
||||
|
||||
local status, res = xpcall(doit, function(e) std_print(e, debug.traceback()) end)
|
||||
if status then
|
||||
return res
|
||||
else
|
||||
print(res)
|
||||
std_print(res)
|
||||
end
|
||||
"
|
||||
local status, res = xpcall(doit, function(e) std_print(e, debug.traceback()) end)
|
||||
if status then
|
||||
return res
|
||||
else
|
||||
print(res)
|
||||
std_print(res)
|
||||
end
|
||||
"
|
||||
#ifdef EDITOR
|
||||
user_config = "
|
||||
local a = ...
|
||||
local function doit()
|
||||
wesnoth.dofile('campaigns/World_Conquest//lua/map/main.lua');
|
||||
wesnoth.dofile('campaigns/World_Conquest//lua/map/settings/settings_dialog.lua');
|
||||
return wc2_debug_settings({PLAYERS})
|
||||
end
|
||||
local a = ...
|
||||
local function doit()
|
||||
wesnoth.dofile('campaigns/World_Conquest//lua/map/main.lua');
|
||||
wesnoth.dofile('campaigns/World_Conquest//lua/map/settings/settings_dialog.lua');
|
||||
return wc2_debug_settings({PLAYERS})
|
||||
end
|
||||
|
||||
local status, res = xpcall(doit, function(e) std_print(e, debug.traceback()) end)
|
||||
if status then
|
||||
return res
|
||||
else
|
||||
std_print(res)
|
||||
end
|
||||
"
|
||||
local status, res = xpcall(doit, function(e) std_print(e, debug.traceback()) end)
|
||||
if status then
|
||||
return res
|
||||
else
|
||||
std_print(res)
|
||||
end
|
||||
"
|
||||
#endif
|
||||
id_suffix=
|
||||
[scenario]
|
||||
|
|
Loading…
Add table
Reference in a new issue