dialog rescan is now in room look

This commit is contained in:
p.kosyh 2010-07-06 10:23:41 +00:00
parent 67d2b46d0c
commit 1918415427

View file

@ -90,9 +90,6 @@ 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...
@ -166,6 +163,16 @@ 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