From a84c9a838c6ed97e45761a7e181b719e3148e8ac Mon Sep 17 00:00:00 2001
From: "p.kosyh"
Date: Sun, 11 Oct 2009 14:35:03 +0000
Subject: [PATCH] seen and have fixes. par fix. not tested
---
stead/stead.lua | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/stead/stead.lua b/stead/stead.lua
index 7e98916..2148df1 100644
--- a/stead/stead.lua
+++ b/stead/stead.lua
@@ -11,7 +11,7 @@ stead = {
function par(space,...)
local i, res
for i = 1, stead.table.maxn(arg) do
- if type(arg[i]) == 'string' then
+ if type(arg[i]) == 'string' and arg[i] ~= "" then
if res == nil then
res = ""
else
@@ -1769,7 +1769,7 @@ function seen(obj, wh)
else
wh = ref(wh);
end
- local o,w = wh.obj:srch(obj);
+ local o,w = wh:srch(obj);
o = ref(o);
if isObject(o) then
return o,w
@@ -1780,7 +1780,7 @@ end
function have(obj)
local o = inv():srch(obj);
o = ref(o);
- if isObject(o) then
+ if isObject(o) and not isDisabled(o) then
return o
end
return nil