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

Fixed quick entering/leaving a town for the first time borking the stores

git-svn-id: http://svn.net-core.org/repos/t-engine4@4335 51575b47-30f0-44d4-a5cc-537603b46e54
parent ea523035
No related branches found
No related tags found
No related merge requests found
......@@ -219,7 +219,12 @@ function _M:tick()
if self.cleanSounds then self:cleanSounds() end
-- Run tick end stuff
self:onTickEndExecute()
end
--- Run all registered tick end functions
-- Usualy jsut let the engine call it
function _M:onTickEndExecute()
if self.on_tick_end and #self.on_tick_end > 0 then
local fs = self.on_tick_end
self.on_tick_end = {}
......
......@@ -54,7 +54,7 @@ aa_text = true
fbo_active = true
shaders_active = true
particles_density = 100
background_saves = true
background_saves = false
mouse_cursor = true
display_fps = 30
gamma_correction = 120
......
......@@ -560,6 +560,9 @@ function _M:changeLevel(lev, zone, keep_old_lev, force_down, auto_zone_stair)
return
end
-- Finish stuff registered for the previous level
self:onTickEndExecute()
if self.zone and self.level then self.party:leftLevel() end
if game.player:isTalentActive(game.player.T_JUMPGATE) then
......
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