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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@4641 51575b47-30f0-44d4-a5cc-537603b46e54
parent 3f054f7b
No related branches found
No related tags found
No related merge requests found
......@@ -247,7 +247,7 @@ function _M:act()
end
-- Resting ? Running ? Otherwise pause
if not self:restStep() and not self:runStep() and self.player then
if not self:restStep() and not self:runStep() and self.player and self:enoughEnergy() then
game.paused = true
elseif not self.player then
self:useEnergy()
......@@ -646,7 +646,7 @@ function _M:runCheck(ignore_memory)
or not self.running.explore and grid.orb_portal) -- A* onto portal
or self.running.cnt < 3 and grid.orb_portal and -- path from portal
game.level.map:checkEntity(self.running.path[1].x, self.running.path[1].y, Map.TERRAIN, "orb_portal")))
then
then
noticed = "interesting terrain"; return
end
if grid and grid.type and grid.type == "store" then noticed = "store entrance spotted"; return 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