use on self is supported2

This commit is contained in:
p.kosyh 2010-07-15 10:20:49 +00:00
parent 0f25594023
commit cbb22da53e

View file

@ -1158,6 +1158,7 @@ end
function player_use(self, what, onwhat, ...)
local obj, obj2, v, vv, r;
local scene_use_mode = false
obj = self:srch(what); -- in inv?
if not obj then -- no
obj = ref(self.where):srch(what); -- in scene?