aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2011-10-11 21:25:18 +1100
committerPaul Gilbert2011-10-11 21:25:18 +1100
commitbdfdac7bfaddd80c7393f5ab67483a8e6e7787a6 (patch)
tree771d77f7cade12d3eeb43d5e8fe10dbbd404eb9c /engines
parent31d1385d652101bba41f19b18bd6d055874b3914 (diff)
downloadscummvm-rg350-bdfdac7bfaddd80c7393f5ab67483a8e6e7787a6.tar.gz
scummvm-rg350-bdfdac7bfaddd80c7393f5ab67483a8e6e7787a6.tar.bz2
scummvm-rg350-bdfdac7bfaddd80c7393f5ab67483a8e6e7787a6.zip
TSAGE: Bugfix for being able to leave Child Protective Services offices
Diffstat (limited to 'engines')
-rw-r--r--engines/tsage/blue_force/blueforce_scenes5.cpp8
-rw-r--r--engines/tsage/blue_force/blueforce_scenes5.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/engines/tsage/blue_force/blueforce_scenes5.cpp b/engines/tsage/blue_force/blueforce_scenes5.cpp
index 9b67159f9b..377fe9e367 100644
--- a/engines/tsage/blue_force/blueforce_scenes5.cpp
+++ b/engines/tsage/blue_force/blueforce_scenes5.cpp
@@ -2542,6 +2542,14 @@ void Scene590::process(Event &event) {
}
}
+void Scene590::dispatch() {
+ if (!_action && (BF_GLOBALS._player._position.x < 182) && (BF_GLOBALS._player._position.y > 158)) {
+ BF_GLOBALS._player.disableControl();
+ _sceneMode = 2;
+ setAction(&_sequenceManager, this, 5901, &BF_GLOBALS._player, NULL);
+ }
+}
+
} // End of namespace BlueForce
} // End of namespace TsAGE
diff --git a/engines/tsage/blue_force/blueforce_scenes5.h b/engines/tsage/blue_force/blueforce_scenes5.h
index 8ff5b40657..74d193c2ee 100644
--- a/engines/tsage/blue_force/blueforce_scenes5.h
+++ b/engines/tsage/blue_force/blueforce_scenes5.h
@@ -397,6 +397,7 @@ public:
virtual void postInit(SceneObjectList *OwnerList = NULL);
virtual void signal();
virtual void process(Event &event);
+ virtual void dispatch();
};
} // End of namespace BlueForce