From 532af9903f5d8ce0013010db2303d285caccedb2 Mon Sep 17 00:00:00 2001
From: "p.kosyh"
Date: Thu, 15 Jul 2010 14:21:18 +0000
Subject: [PATCH] more useful NEED_SCENE
---
stead/goto.lua | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/stead/goto.lua b/stead/goto.lua
index 2de5c16..6a434ee 100644
--- a/stead/goto.lua
+++ b/stead/goto.lua
@@ -70,6 +70,11 @@ go = function (self, where, back, noenter, noexit, nodsc)
ret()
+ PLAYER_MOVED = true
+ if need_scene and not nodsc then
+ NEED_SCENE = true
+ end
+
if not stead.in_goto_call then
local to = self.where
if not noexit then
@@ -99,10 +104,6 @@ go = function (self, where, back, noenter, noexit, nodsc)
dialog_rescan(ref(to));
end
end
- PLAYER_MOVED = true
- if need_scene and not nodsc then
- NEED_SCENE = true
- end
return res;
end
stead.go = go