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

Switching places will correctly pickup things

git-svn-id: http://svn.net-core.org/repos/t-engine4@5521 51575b47-30f0-44d4-a5cc-537603b46e54
parent 76414c4e
No related branches found
No related tags found
No related merge requests found
......@@ -162,8 +162,8 @@ function _M:onWorldEncounter(target, x, y)
end
end
function _M:describeFloor(x, y)
if self.old_x == x and self.old_y == y then return end
function _M:describeFloor(x, y, force)
if self.old_x == x and self.old_y == y and not force then return end
-- Autopickup money
if self:getInven(self.INVEN_INVEN) and not self.no_inventory_access then
......
......@@ -62,6 +62,8 @@ function _M:bumpInto(target, x, y)
self.x = nil self.y = nil
target:move(sx, sy, true)
self:move(tx, ty, true)
if target.describeFloor then target:describeFloor(target.x, target.y, true) end
if self.describeFloor then self:describeFloor(self.x, self.y, true) end
end
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