Unneeded code? Need to test...
This commit is contained in:
parent
d65be08951
commit
2e050cdc70
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
if ref(ways():srch(obj)) then
|
||||
cmd = 'go ';
|
||||
end
|
||||
end
|
||||
if not o then
|
||||
o = ref(me():srch(obj));
|
||||
if o ~= nil then
|
||||
cmd = 'use ';
|
||||
end
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue