use on self is supported

This commit is contained in:
p.kosyh 2010-07-15 10:20:29 +00:00
parent c857685afa
commit 0f25594023
2 changed files with 1 additions and 2 deletions

View file

@ -25,7 +25,7 @@ function player_use(self, what, onwhat, ...)
if not obj2 then
obj2 = self:srch(onwhat); -- in inv?
end
if not obj2 or obj2 == obj then
if not obj2 then
return game.err, false;
end

View file

@ -1158,7 +1158,6 @@ 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?