From 4163baa385f1c9a04a325d1848d6a2f27d4c64c9 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Wed, 6 Jun 2012 19:40:26 +0000 Subject: [PATCH] fix git-svn-id: http://svn.net-core.org/repos/t-engine4@5207 51575b47-30f0-44d4-a5cc-537603b46e54 --- game/modules/tome/class/Game.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/game/modules/tome/class/Game.lua b/game/modules/tome/class/Game.lua index 1148b39a39..021cc8cd21 100644 --- a/game/modules/tome/class/Game.lua +++ b/game/modules/tome/class/Game.lua @@ -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 -- GitLab