map script needs to set up the script folder.

This commit is contained in:
Enno Rehling 2014-08-12 23:06:44 +02:00
parent b0203a2cef
commit f0ac736bd1
2 changed files with 6 additions and 6 deletions

View File

@ -1,3 +1,9 @@
local path = 'scripts'
if config.install then
path = config.install .. '/' .. path
end
package.path = package.path .. ';' .. path .. '/?.lua;' .. path .. '/?/init.lua'
require 'eressea.path'
require 'eressea'
require 'eressea.xmlconf'
eressea.read_game(get_turn() .. ".dat")

View File

@ -182,12 +182,6 @@ function run_turn(rules)
return result
end
local path = 'scripts'
if config.install then
path = config.install .. '/' .. path
end
package.path = package.path .. ';' .. path .. '/?.lua;' .. path .. '/?/init.lua'
require 'eressea'
require 'eressea.xmlconf' -- read xml data