aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/script/script.cpp
diff options
context:
space:
mode:
authorThanasis Antoniou2019-05-23 15:05:03 +0300
committerThanasis Antoniou2019-05-23 15:06:29 +0300
commitd78dd5c058d4fe86c428c88b9af0d83f0bafc19e (patch)
tree833caf6810b7c25b60f6b9b49590cd535a472997 /engines/bladerunner/script/script.cpp
parent67a29ad5b361a0752f40c432d1ab37ac7701d5b6 (diff)
downloadscummvm-rg350-d78dd5c058d4fe86c428c88b9af0d83f0bafc19e.tar.gz
scummvm-rg350-d78dd5c058d4fe86c428c88b9af0d83f0bafc19e.tar.bz2
scummvm-rg350-d78dd5c058d4fe86c428c88b9af0d83f0bafc19e.zip
BLADERUNNER: Fix NR11 pathfinding
Added new method to "remove" bad objects in a scene/nr11 Removed objects, and still there, but they are renamed to "REMOVEDxx" and they won't affect obstacles and paths
Diffstat (limited to 'engines/bladerunner/script/script.cpp')
-rw-r--r--engines/bladerunner/script/script.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/bladerunner/script/script.cpp b/engines/bladerunner/script/script.cpp
index c8a5c609bf..c65fb03152 100644
--- a/engines/bladerunner/script/script.cpp
+++ b/engines/bladerunner/script/script.cpp
@@ -1507,8 +1507,9 @@ void ScriptBase::Clickable_Object(const char *objectName) {
void ScriptBase::Unclickable_Object(const char *objectName) {
debugC(kDebugScript, "Unclickable_Object(%s)", objectName);
int objectId = _vm->_scene->findObject(objectName);
- if (objectId == -1)
+ if (objectId == -1) {
return;
+ }
_vm->_scene->objectSetIsClickable(objectId, false, !_vm->_sceneIsLoading);
}