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

Picking up when no objects are on the floor does not loose a turn

git-svn-id: http://svn.net-core.org/repos/t-engine4@4350 51575b47-30f0-44d4-a5cc-537603b46e54
parent 8021abfc
No related branches found
No related tags found
No related merge requests found
......@@ -702,10 +702,12 @@ function _M:playerPickup()
end)
else
local o = self:pickupFloor(1, true)
if o and type(o) == "table" then o.__new_pickup = true end
self:sortInven()
self:useEnergy()
self.changed = true
if o and type(o) == "table" then
self:useEnergy()
o.__new_pickup = true
end
self.changed = true
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