forked from github/server
not writing aliases for monsters should make things go faster
This commit is contained in:
parent
57623bb2a7
commit
18485ee6f1
2 changed files with 6 additions and 4 deletions
|
@ -47,11 +47,13 @@ function write_aliases()
|
|||
file = io.open(basepath .. "/aliases", "w")
|
||||
for faction in factions() do
|
||||
local unit
|
||||
if faction.email ~= "" then
|
||||
file:write("partei-" .. itoa36(faction.id) .. ": " .. faction.email .. "\n")
|
||||
for unit in faction.units do
|
||||
file:write("einheit-" .. itoa36(unit.id) .. ": " .. faction.email .. "\n")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
file:close()
|
||||
end
|
||||
|
|
|
@ -79,7 +79,7 @@ function test_md5()
|
|||
read_game("571.dat", "binary")
|
||||
-- read_orders("orders.571")
|
||||
run_turn()
|
||||
write_game("572.txt", "text")
|
||||
-- write_game("572.txt", "text")
|
||||
end
|
||||
|
||||
loadscript("default.lua")
|
||||
|
|
Loading…
Reference in a new issue