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

* the Game:tick() method must check for savefile_pipe.saving and return true...

 * 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
parent 26eec1a4
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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