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

fix game

git-svn-id: http://svn.net-core.org/repos/t-engine4@106 51575b47-30f0-44d4-a5cc-537603b46e54
parent 248a5255
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,7 @@ end
--- This is the "main game loop", do something here
function _M:tick()
-- Run the level distancer
if self.level.distancer_co then
if self.level and self.level.distancer_co then
local ok, err = coroutine.resume(self.level.distancer_co)
if not ok and err then error(err) 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