Skip to content
Snippets Groups Projects
Commit b4648c1a authored by dg's avatar dg
Browse files

fix vaults

git-svn-id: http://svn.net-core.org/repos/t-engine4@1738 51575b47-30f0-44d4-a5cc-537603b46e54
parent 6b9c3374
No related branches found
No related tags found
No related merge requests found
......@@ -94,6 +94,7 @@ function _M:loadMap(file)
local m = { w=#(ret[1]), h=#ret }
local rotate = util.getval(g.rotates or "default")
local function populate(i, j, c)
local ii, jj = i, j
......@@ -109,7 +110,6 @@ function _M:loadMap(file)
end
-- Read the map
local rotate = util.getval(g.rotates or "default")
if type(ret[1]) == "string" then
for j, line in ipairs(ret) do
local i = 1
......@@ -176,6 +176,7 @@ function _M:generate(lev, old_lev)
local spots = {}
for i = 1, self.gen_map.w do for j = 1, self.gen_map.h do
print(i,j)
local c = self.gen_map[i][j]
local g = self:resolve("grid", c)
if g then
......
......@@ -24,8 +24,8 @@ return {
level_range = {1, 1},
max_level = 1,
width = 170, height = 100,
all_remembered = true,
all_lited = true,
-- all_remembered = true,
-- all_lited = true,
persistant = "memory",
ambiant_music = "Remembrance.ogg",
wilderness = true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment