From 8139ce4e66c05bbb65f64fe2a26968c6175e2c10 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Thu, 10 Nov 2011 23:01:43 +0000 Subject: [PATCH] fix git-svn-id: http://svn.net-core.org/repos/t-engine4@4641 51575b47-30f0-44d4-a5cc-537603b46e54 --- game/modules/tome/class/Player.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game/modules/tome/class/Player.lua b/game/modules/tome/class/Player.lua index 05b6b0298b..4cc6d8edd9 100644 --- a/game/modules/tome/class/Player.lua +++ b/game/modules/tome/class/Player.lua @@ -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 -- GitLab