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

fix resting and running

git-svn-id: http://svn.net-core.org/repos/t-engine4@298 51575b47-30f0-44d4-a5cc-537603b46e54
parent 22a8e765
No related branches found
No related tags found
No related merge requests found
......@@ -20,11 +20,9 @@ function _M:tick()
-- If we are paused do not get energy, but still process frames if needed
engine.Game.tick(self)
else
while not self.paused do
engine.GameEnergyBased.tick(self)
self.turn = self.turn + 1
self:onTurn()
end
engine.GameEnergyBased.tick(self)
self.turn = self.turn + 1
self:onTurn()
end
end
......
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