fix in inv and ways
This commit is contained in:
parent
dceb9fd804
commit
83103a415d
|
@ -136,7 +136,8 @@ iface.ways = function(self, str)
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function get_inv(horiz)
|
function get_inv(horiz)
|
||||||
local str = me():inv();
|
RAW_TEXT = true
|
||||||
|
local str = iface:cmd("inv");
|
||||||
if str then
|
if str then
|
||||||
str = stead.string.gsub(str, '\n$','');
|
str = stead.string.gsub(str, '\n$','');
|
||||||
if not horiz then
|
if not horiz then
|
||||||
|
@ -152,7 +153,8 @@ end
|
||||||
instead.get_inv = get_inv;
|
instead.get_inv = get_inv;
|
||||||
|
|
||||||
function get_ways()
|
function get_ways()
|
||||||
local str = me():ways();
|
RAW_TEXT = true
|
||||||
|
local str = iface:cmd("way");
|
||||||
if str and str ~= '' then
|
if str and str ~= '' then
|
||||||
str = stead.string.gsub(str, '\n$','');
|
str = stead.string.gsub(str, '\n$','');
|
||||||
str = stead.string.gsub(str, '\\?[\\'.. stead.delim ..']', { [stead.delim] = game.gui.ways_delim });
|
str = stead.string.gsub(str, '\\?[\\'.. stead.delim ..']', { [stead.delim] = game.gui.ways_delim });
|
||||||
|
|
|
@ -2019,7 +2019,6 @@ iface = {
|
||||||
stead.state = false; -- changed state (main screen)
|
stead.state = false; -- changed state (main screen)
|
||||||
local a = { };
|
local a = { };
|
||||||
local cmd;
|
local cmd;
|
||||||
RAW_TEXT = nil
|
|
||||||
PLAYER_MOVED = nil
|
PLAYER_MOVED = nil
|
||||||
cmd,a = stead.getcmd(inp);
|
cmd,a = stead.getcmd(inp);
|
||||||
if cmd == '' then cmd = 'look' end
|
if cmd == '' then cmd = 'look' end
|
||||||
|
@ -2078,6 +2077,7 @@ iface = {
|
||||||
end
|
end
|
||||||
|
|
||||||
if v == false then
|
if v == false then
|
||||||
|
RAW_TEXT = nil
|
||||||
return stead.cat(r, '\n'), false;
|
return stead.cat(r, '\n'), false;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -2098,7 +2098,7 @@ iface = {
|
||||||
if stead.state then
|
if stead.state then
|
||||||
game._lastdisp = vv
|
game._lastdisp = vv
|
||||||
end
|
end
|
||||||
|
RAW_TEXT = nil
|
||||||
if vv == nil then -- nil is error
|
if vv == nil then -- nil is error
|
||||||
return ''
|
return ''
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue