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
|
# for arch linux, fedora (may be others) use this
|
||||||
#
|
#
|
||||||
# LUA_CFLAGS=$(shell pkg-config --cflags lua)
|
LUA_CFLAGS=$(shell pkg-config --cflags lua)
|
||||||
# LUA_LFLAGS=$(shell pkg-config --libs lua)
|
LUA_LFLAGS=$(shell pkg-config --libs lua)
|
||||||
#
|
#
|
||||||
|
|
||||||
SDL_CFLAGS=$(shell sdl-config --cflags)
|
SDL_CFLAGS=$(shell sdl-config --cflags)
|
||||||
|
|
|
@ -6,26 +6,21 @@ iface.img = function(self, str)
|
||||||
end;
|
end;
|
||||||
|
|
||||||
iface.xref = function(self, str, obj)
|
iface.xref = function(self, str, obj)
|
||||||
local o = ref(here():srch(obj));
|
local o = ref(obj);
|
||||||
local cmd=''
|
local cmd=''
|
||||||
if not o then
|
|
||||||
o = ref(ways():srch(obj));
|
if ref(ways():srch(obj)) then
|
||||||
if o then
|
cmd = 'go ';
|
||||||
cmd = 'go ';
|
|
||||||
end
|
|
||||||
end
|
|
||||||
if not o then
|
|
||||||
o = ref(me():srch(obj));
|
|
||||||
if o ~= nil then
|
|
||||||
cmd = 'use ';
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if not isObject(o) or isStatus(o) or not o.id then
|
if not isObject(o) or isStatus(o) or not o.id then
|
||||||
return str;
|
return str;
|
||||||
end
|
end
|
||||||
|
|
||||||
if isMenu(o) then
|
if isMenu(o) then
|
||||||
cmd = 'act ';
|
cmd = 'act ';
|
||||||
end
|
end
|
||||||
|
|
||||||
return cat('<a:'..cmd..'0'..tostring(o.id)..'>',str,'</a>');
|
return cat('<a:'..cmd..'0'..tostring(o.id)..'>',str,'</a>');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue