use on self is supported
This commit is contained in:
parent
c857685afa
commit
0f25594023
|
@ -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
|
||||
|
||||
|
|
|
@ -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?
|
||||
|
|
Reference in a new issue