roll back new goto

This commit is contained in:
p.kosyh 2010-06-16 10:25:29 +00:00
parent 40aed624e5
commit a4dedb53dc

View file

@ -45,15 +45,17 @@ go = function (self, where, back)
self.where = deref(where);
end
v, r = call(ref(where), 'enter', deref(was));
if r == false then
self.where = was;
return par('^^', res, v), ret(r)
end
if not back or not isDialog(ref(self.where)) or isDialog(ref(where)) then
v, r = call(ref(where), 'enter', deref(was));
if r == false then
self.where = was;
return par('^^', res, v), ret(r)
end
need_scene = true;
if ref(where) ~= ref(self.where) then -- jump !!!
need_scene = false;
need_scene = true;
if ref(where) ~= ref(self.where) then -- jump !!!
need_scene = false;
end
end
res = par('^^',res,v);