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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@5207 51575b47-30f0-44d4-a5cc-537603b46e54
parent 231c44df
No related branches found
No related tags found
No related merge requests found
......@@ -966,6 +966,7 @@ function _M:tick()
if savefile_pipe.saving then self.player.changed = true end
if self.paused and not savefile_pipe.saving then return true end
if self.on_tick_end and #self.on_tick_end > 0 then return true end
end
function _M:displayDelayedLogDamage()
......@@ -1628,7 +1629,7 @@ end
--- When a save has been done, if it's a zone or level, also save the main game
function _M:onSavefilePushed(savename, type, object, class)
if config.settings.cheat then return end -- Dont annoy debug
if type == "zone" or type == "level" then self:saveGame() end
if type == "zone" or type == "level" then self:onTickEnd(function() self:saveGame() end) end
end
--- Saves the highscore of the current char
......
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