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

oups

git-svn-id: http://svn.net-core.org/repos/t-engine4@2349 51575b47-30f0-44d4-a5cc-537603b46e54
parent 136358bf
No related branches found
No related tags found
No related merge requests found
......@@ -96,15 +96,15 @@ end
--- Make walls have a pseudo 3D effect & rounded corners
function _M:niceTileRoundwall3d(level, i, j, g, nt)
local s = level.map:checkEntity(i, j, Map.TERRAIN, "block_move") and true or false
local g8 = level.map:checkEntity(i, j-1, Map.TERRAIN, "block_move") and true or false
local g2 = level.map:checkEntity(i, j+1, Map.TERRAIN, "block_move") and true or false
local g4 = level.map:checkEntity(i-1, j, Map.TERRAIN, "block_move") and true or false
local g6 = level.map:checkEntity(i+1, j, Map.TERRAIN, "block_move") and true or false
local g1 = level.map:checkEntity(i-1, j+1, Map.TERRAIN, "block_move") and true or false
local g3 = level.map:checkEntity(i+1, j+1, Map.TERRAIN, "block_move") and true or false
local g7 = level.map:checkEntity(i-1, j-1, Map.TERRAIN, "block_move") and true or false
local g9 = level.map:checkEntity(i+1, j-1, Map.TERRAIN, "block_move") and true or false
local s = level.map:checkEntity(i, j, Map.TERRAIN, "type") or "wall"
local g8 = level.map:checkEntity(i, j-1, Map.TERRAIN, "type") or "wall"
local g2 = level.map:checkEntity(i, j+1, Map.TERRAIN, "type") or "wall"
local g4 = level.map:checkEntity(i-1, j, Map.TERRAIN, "type") or "wall"
local g6 = level.map:checkEntity(i+1, j, Map.TERRAIN, "type") or "wall"
local g1 = level.map:checkEntity(i-1, j+1, Map.TERRAIN, "type") or "wall"
local g3 = level.map:checkEntity(i+1, j+1, Map.TERRAIN, "type") or "wall"
local g7 = level.map:checkEntity(i-1, j-1, Map.TERRAIN, "type") or "wall"
local g9 = level.map:checkEntity(i+1, j-1, Map.TERRAIN, "type") or "wall"
-- Full
if g1==s and g2==s and g3==s and g4==s and g6==s and g7==s and g8==s and g9==s then self:replace(i, j, self:getTile(nt.inner))
......
......@@ -92,7 +92,7 @@ return function(gen, id)
end
end
else
return make_hmap(self, x, y, is_lit) end
return make_hmap(self, x, y, is_lit)
end
-- Materialize the map
......
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