forked from github/server
local fixes
This commit is contained in:
parent
9e902c3456
commit
dcf7166973
3 changed files with 7 additions and 14 deletions
|
@ -66,15 +66,15 @@ selected_regions(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
static 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
|
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
|
void
|
||||||
|
|
|
@ -13,7 +13,7 @@ loadscript("default.lua")
|
||||||
|
|
||||||
function change_locales()
|
function change_locales()
|
||||||
-- local localechange = { }
|
-- local localechange = { }
|
||||||
local localechange = { en = { "adun" } }
|
local localechange = { en = { "won" } }
|
||||||
|
|
||||||
for loc, flist in pairs(localechange) do
|
for loc, flist in pairs(localechange) do
|
||||||
for index, name in pairs(flist) do
|
for index, name in pairs(flist) do
|
||||||
|
|
|
@ -9,20 +9,13 @@ function test_locales()
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
|
|
||||||
test_locales()
|
--test_locales()
|
||||||
|
|
||||||
local now = os.clock()
|
local now = os.clock()
|
||||||
read_game("571.new", "binary")
|
read_game("572.dat", "binary")
|
||||||
--read_game("566.txt", "text")
|
|
||||||
--write_game("566.txt", "text")
|
|
||||||
local elapsed = os.clock() - now
|
local elapsed = os.clock() - now
|
||||||
print(elapsed)
|
print(elapsed)
|
||||||
-- text: 50.574
|
-- text: 50.574
|
||||||
-- bin0: 19.547
|
-- bin0: 19.547
|
||||||
-- bin1: 18.953
|
-- bin1: 18.953
|
||||||
f = get_faction(0)
|
|
||||||
|
|
||||||
--renumber(f, 666)
|
|
||||||
-- write_game("571.new", "binary")
|
|
||||||
|
|
||||||
io.stdin:read("*line")
|
io.stdin:read("*line")
|
||||||
|
|
Loading…
Reference in a new issue