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

Fixed the random crash/weird textures when coming back from the Eidolon plane

git-svn-id: http://svn.net-core.org/repos/t-engine4@3470 51575b47-30f0-44d4-a5cc-537603b46e54
parent 5168c040
No related branches found
No related tags found
No related merge requests found
......@@ -332,10 +332,6 @@ function _M:close()
self.changed = true
end
--- Closes things in the object to allow it to be garbage collected
-- Map objects are NOT automatically garbage collected because they contain FOV C structure, which themselves have a reference
-- to the map. Cyclic references! BAD BAD BAD !<br/>
-- The closing should be handled automatically by the Zone class so no bother for authors
function _M:reopen()
if not self.closed then return end
self:redisplay()
......
......@@ -619,7 +619,6 @@ function _M:changeLevel(lev, zone, keep_old_lev, force_down)
end
end
self.zone_name_s = nil
self.level.map:redisplay()
-- Level feeling
local feeling
......@@ -645,6 +644,9 @@ function _M:changeLevel(lev, zone, keep_old_lev, force_down)
-- Day/Night cycle
if self.level.data.day_night then self.state:dayNightCycle() end
self.level.map:redisplay()
self.level.map:reopen()
end
function _M:getPlayer(main)
......
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