From c4b844320baa50d22f1692cbb94b922d50c3c0a3 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Wed, 1 Sep 2010 12:38:25 +0000 Subject: [PATCH] * the Game:tick() method must check for savefile_pipe.saving and return true if it's true (otherwise the save will not continue in the background). Check the example module tick() git-svn-id: http://svn.net-core.org/repos/t-engine4@1122 51575b47-30f0-44d4-a5cc-537603b46e54 --- game/modules/example/class/Game.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/modules/example/class/Game.lua b/game/modules/example/class/Game.lua index a84e959264..c59f586fde 100644 --- a/game/modules/example/class/Game.lua +++ b/game/modules/example/class/Game.lua @@ -194,7 +194,7 @@ function _M:tick() -- engine.GameEnergyBased.tick(self) end -- When paused (waiting for player input) we return true: this means we wont be called again until an event wakes us - if game.paused then return true end + if self.paused and not savefile_pipe.saving then return true end end --- Called every game turns -- GitLab