diff --git a/src/scripts/wdw-run.lua b/src/scripts/wdw-run.lua index 5331971fc..4a93ffac1 100644 --- a/src/scripts/wdw-run.lua +++ b/src/scripts/wdw-run.lua @@ -24,13 +24,16 @@ function run_wdw() end end + local outfile="wdw-setup" -- run the alliances setup if list_empty(alliances) then dofile("wdw-setup.lua") + else + -- run the turn (not yet) + read_orders(orders) + process_orders() + outfile = "" .. get_turn() end - -- -- run the turn (not yet) - -- read_orders(orders) - -- process_orders() -- siegbedingungen ausgeben dofile("wdw-standings.lua") @@ -41,7 +44,7 @@ function run_wdw() -- write the resulting file to 'wdw-setup' - if write_game("wdw-setup")~=0 then + if write_game(outfile)~=0 then print("could not write game") return -1 end diff --git a/src/scripts/wdw-setup.lua b/src/scripts/wdw-setup.lua index c7c48e982..089ea6464 100644 --- a/src/scripts/wdw-setup.lua +++ b/src/scripts/wdw-setup.lua @@ -16,6 +16,7 @@ end function get_position(aid) -- return the position at which alliance 'aid' will start. + print("Alliance " .. aid) local pos = positions[aid] -- hack, because i have no coordinates yet: