not writing aliases for monsters should make things go faster

This commit is contained in:
Enno Rehling 2008-05-25 09:34:57 +00:00
parent 57623bb2a7
commit 18485ee6f1
2 changed files with 6 additions and 4 deletions

View file

@ -47,11 +47,13 @@ function write_aliases()
file = io.open(basepath .. "/aliases", "w") file = io.open(basepath .. "/aliases", "w")
for faction in factions() do for faction in factions() do
local unit local unit
if faction.email ~= "" then
file:write("partei-" .. itoa36(faction.id) .. ": " .. faction.email .. "\n") file:write("partei-" .. itoa36(faction.id) .. ": " .. faction.email .. "\n")
for unit in faction.units do for unit in faction.units do
file:write("einheit-" .. itoa36(unit.id) .. ": " .. faction.email .. "\n") file:write("einheit-" .. itoa36(unit.id) .. ": " .. faction.email .. "\n")
end end
end end
end
file:close() file:close()
end end

View file

@ -79,7 +79,7 @@ function test_md5()
read_game("571.dat", "binary") read_game("571.dat", "binary")
-- read_orders("orders.571") -- read_orders("orders.571")
run_turn() run_turn()
write_game("572.txt", "text") -- write_game("572.txt", "text")
end end
loadscript("default.lua") loadscript("default.lua")