visited fix for main, ini load arg added
This commit is contained in:
parent
aa16d66acf
commit
9dbb68ea74
|
@ -99,6 +99,13 @@ go = function (self, where, back)
|
||||||
return res;
|
return res;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
game.ini = stead.hook(game.ini,function(f, ...)
|
||||||
|
if isRoom(here()) then
|
||||||
|
here().__visited = 1
|
||||||
|
end
|
||||||
|
return f(unpack(arg))
|
||||||
|
end)
|
||||||
|
|
||||||
function visited(w)
|
function visited(w)
|
||||||
if not w then w = here() end
|
if not w then w = here() end
|
||||||
w = ref(w)
|
w = ref(w)
|
||||||
|
|
|
@ -1331,8 +1331,8 @@ function do_ini(self, load)
|
||||||
local function call_codekey(k, o)
|
local function call_codekey(k, o)
|
||||||
stead.functions[o].key_name = k;
|
stead.functions[o].key_name = k;
|
||||||
end
|
end
|
||||||
local function call_ini(k, o)
|
local function call_ini(k, o, ...)
|
||||||
v = stead.par('', v, call(o, 'ini'));
|
v = stead.par('', v, call(o, 'ini'), unpack(arg));
|
||||||
end
|
end
|
||||||
|
|
||||||
math.randomseed(tonumber(os.date("%m%d%H%M%S")))
|
math.randomseed(tonumber(os.date("%m%d%H%M%S")))
|
||||||
|
@ -1348,7 +1348,7 @@ function do_ini(self, load)
|
||||||
call_key("game", game);
|
call_key("game", game);
|
||||||
for_each(game, "game", check_list, isList, deref(game))
|
for_each(game, "game", check_list, isList, deref(game))
|
||||||
end
|
end
|
||||||
for_each_object(call_ini);
|
for_each_object(call_ini, load);
|
||||||
me():tag();
|
me():tag();
|
||||||
if not self.showlast then
|
if not self.showlast then
|
||||||
self._lastdisp = nil;
|
self._lastdisp = nil;
|
||||||
|
|
Loading…
Reference in a new issue