local fixes

This commit is contained in:
Enno Rehling 2008-05-18 14:38:12 +00:00
parent 9e902c3456
commit dcf7166973
3 changed files with 7 additions and 14 deletions

View File

@ -66,15 +66,15 @@ selected_regions(void)
}
static void
gmtool_select_coordinate(int x, int y)
gmtool_select_coordinate(int x, int y, int select)
{
select_coordinate(current_state->selected, x, y);
select_coordinate(current_state->selected, x, y, select);
}
static void
gmtool_select_region(region& r)
gmtool_select_region(region& r, int select)
{
select_coordinate(current_state->selected, r.x, r.y);
select_coordinate(current_state->selected, r.x, r.y, select);
}
void

View File

@ -13,7 +13,7 @@ loadscript("default.lua")
function change_locales()
-- local localechange = { }
local localechange = { en = { "adun" } }
local localechange = { en = { "won" } }
for loc, flist in pairs(localechange) do
for index, name in pairs(flist) do

View File

@ -9,20 +9,13 @@ function test_locales()
return 0
end
test_locales()
--test_locales()
local now = os.clock()
read_game("571.new", "binary")
--read_game("566.txt", "text")
--write_game("566.txt", "text")
read_game("572.dat", "binary")
local elapsed = os.clock() - now
print(elapsed)
-- text: 50.574
-- bin0: 19.547
-- bin1: 18.953
f = get_faction(0)
--renumber(f, 666)
-- write_game("571.new", "binary")
io.stdin:read("*line")