fix in use

This commit is contained in:
p.kosyh 2011-05-12 16:51:54 +00:00
parent 3f44df0051
commit 983bab86fd

View file

@ -61,7 +61,14 @@ function player_use(self, what, onwhat, ...)
if not v and not vv then
v, r = call(game, 'use', obj, obj2, ...);
end
return stead.par(' ', v, vv);
if v == nil and vv == nil then
return
end
v = stead.par(' ', v, vv);
if v == nil and stead.api_version >= "1.3.5" then
return true
end
return v
end
function vobj_save(self, name, h, need)