forked from github/server
Merge pull request #159 from badgerman/develop
remove the change_locales code
This commit is contained in:
commit
bd3c9f1fcb
|
@ -26,18 +26,6 @@ function callbacks(rules, name, ...)
|
|||
end
|
||||
end
|
||||
|
||||
local function change_locales(localechange)
|
||||
for loc, flist in pairs(localechange) do
|
||||
for index, name in pairs(flist) do
|
||||
f = get_faction(atoi36(name))
|
||||
if f ~= nil and f.locale ~= loc then
|
||||
print("LOCALECHANGE ", f, f.locale, loc)
|
||||
f.locale = loc
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local function dbupdate()
|
||||
update_scores()
|
||||
dbname = config.dbname or 'eressea.db'
|
||||
|
@ -153,9 +141,6 @@ function process(rules, orders)
|
|||
process_orders()
|
||||
callbacks(rules, 'update')
|
||||
|
||||
local localechange = { de = { 'ii' } }
|
||||
change_locales(localechange)
|
||||
|
||||
write_files(config.locales)
|
||||
|
||||
file = '' .. get_turn() .. '.dat'
|
||||
|
@ -184,7 +169,11 @@ end
|
|||
|
||||
function file_exists(name)
|
||||
local f=io.open(name,"r")
|
||||
if f~=nil then io.close(f) return true else return false end
|
||||
if not f then
|
||||
return false
|
||||
end
|
||||
io.close(f)
|
||||
return true
|
||||
end
|
||||
|
||||
if file_exists('execute.lock') then
|
||||
|
|
Loading…
Reference in New Issue