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

fixed FOV update when running

git-svn-id: http://svn.net-core.org/repos/t-engine4@868 51575b47-30f0-44d4-a5cc-537603b46e54
parent 3aec972a
No related branches found
No related tags found
No related merge requests found
......@@ -135,6 +135,7 @@ function _M:runStep()
if isEdge(self, self.running.dir) then self:runStop()
else self:moveDir(self.running.dir) end
end
self:runMoved()
-- Did not move ? no use in running
if self.x == oldx and self.y == oldy then self:runStop() end
......@@ -230,3 +231,7 @@ function _M:runScan(fct)
fct(x, y)
end
end
--- Called after running a step
function _M:runMoved()
end
......@@ -362,11 +362,14 @@ function _M:runCheck()
end)
if noticed then return false, noticed end
self:playerFOV()
return engine.interface.PlayerRun.runCheck(self)
end
--- Called after running a step
function _M:runMoved()
self:playerFOV()
end
function _M:doDrop(inven, item)
if game.zone.wilderness then game.logPlayer(self, "You can not drop on the world map.") return end
self:dropFloor(inven, item, true, true)
......
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