Unneeded code? Need to test...

This commit is contained in:
p.kosyh 2009-10-06 18:22:52 +00:00
parent d65be08951
commit 2e050cdc70
2 changed files with 9 additions and 14 deletions

View file

@ -16,8 +16,8 @@ LUA_LFLAGS=$(shell pkg-config --libs lua5.1)
# for arch linux, fedora (may be others) use this
#
# LUA_CFLAGS=$(shell pkg-config --cflags lua)
# LUA_LFLAGS=$(shell pkg-config --libs lua)
LUA_CFLAGS=$(shell pkg-config --cflags lua)
LUA_LFLAGS=$(shell pkg-config --libs lua)
#
SDL_CFLAGS=$(shell sdl-config --cflags)

View file

@ -6,26 +6,21 @@ iface.img = function(self, str)
end;
iface.xref = function(self, str, obj)
local o = ref(here():srch(obj));
local o = ref(obj);
local cmd=''
if not o then
o = ref(ways():srch(obj));
if o then
cmd = 'go ';
end
end
if not o then
o = ref(me():srch(obj));
if o ~= nil then
cmd = 'use ';
end
if ref(ways():srch(obj)) then
cmd = 'go ';
end
if not isObject(o) or isStatus(o) or not o.id then
return str;
end
if isMenu(o) then
cmd = 'act ';
end
return cat('<a:'..cmd..'0'..tostring(o.id)..'>',str,'</a>');
end;