more stupid but robust dialog_rescan

This commit is contained in:
p.kosyh 2010-07-07 17:44:44 +00:00
parent 17e725bf15
commit 798dacf777

View file

@ -90,6 +90,9 @@ go = function (self, where, back)
elseif here().__visited == nil then
ref(to).__visited = 1
end
if isDialog(ref(to)) then
dialog_rescan(ref(to));
end
end
PLAYER_MOVED = true
if need_scene then -- or isForcedsc(ref(where)) then -- i'am not sure...
@ -163,16 +166,6 @@ player = stead.inherit(player, function(v)
return v
end)
room = stead.inherit(room, function(v)
v.look = hook(v.look, function(f, s, ...)
if isDialog(s) then
dialog_rescan(s);
end
return f(s, unpack(arg));
end)
return v
end)
pl = player(pl) -- reinit
-- vim:ts=4