aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2011-10-28 18:23:34 +0200
committerStrangerke2011-10-28 20:50:51 +0200
commit50302e07a1ebd7fceb6dec9e08d9e2e9841f54d1 (patch)
tree422483d6fc1659afbc8e0b4ccc27085078ffd031 /engines
parent6fd2eff3e94cf43e0f5c60c319ca9c2654d3aa29 (diff)
downloadscummvm-rg350-50302e07a1ebd7fceb6dec9e08d9e2e9841f54d1.tar.gz
scummvm-rg350-50302e07a1ebd7fceb6dec9e08d9e2e9841f54d1.tar.bz2
scummvm-rg350-50302e07a1ebd7fceb6dec9e08d9e2e9841f54d1.zip
TSAGE: Blue Force - Inside gang car (415): Fix 2 focus objects (missing remove()).
Diffstat (limited to 'engines')
-rw-r--r--engines/tsage/blue_force/blueforce_scenes4.cpp18
-rw-r--r--engines/tsage/blue_force/blueforce_scenes4.h2
2 files changed, 20 insertions, 0 deletions
diff --git a/engines/tsage/blue_force/blueforce_scenes4.cpp b/engines/tsage/blue_force/blueforce_scenes4.cpp
index f32f240a4a..36bb7e0668 100644
--- a/engines/tsage/blue_force/blueforce_scenes4.cpp
+++ b/engines/tsage/blue_force/blueforce_scenes4.cpp
@@ -928,6 +928,17 @@ bool Scene415::GunInset::startAction(CursorType action, Event &event) {
}
}
+void Scene415::GunInset::remove() {
+ Scene415 *scene = (Scene415 *)BF_GLOBALS._sceneManager._scene;
+
+ BF_GLOBALS._player.disableControl();
+ scene->_gunAndWig.remove();
+ FocusObject::remove();
+
+ scene->_sceneMode = 0;
+ scene->_object6.animate(ANIM_MODE_6, scene);
+}
+
bool Scene415::GunAndWig::startAction(CursorType action, Event &event) {
Scene415 *scene = (Scene415 *)BF_GLOBALS._sceneManager._scene;
@@ -974,6 +985,13 @@ bool Scene415::BulletsInset::startAction(CursorType action, Event &event) {
}
}
+void Scene415::BulletsInset::remove() {
+ Scene415 *scene = (Scene415 *)BF_GLOBALS._sceneManager._scene;
+
+ scene->_theBullets.remove();
+ FocusObject::remove();
+}
+
bool Scene415::DashDrawer::startAction(CursorType action, Event &event) {
Scene415 *scene = (Scene415 *)BF_GLOBALS._sceneManager._scene;
diff --git a/engines/tsage/blue_force/blueforce_scenes4.h b/engines/tsage/blue_force/blueforce_scenes4.h
index 48b48ec7f8..b7f80f0d57 100644
--- a/engines/tsage/blue_force/blueforce_scenes4.h
+++ b/engines/tsage/blue_force/blueforce_scenes4.h
@@ -133,6 +133,7 @@ class Scene415: public SceneExt {
class GunInset: public FocusObject {
public:
virtual bool startAction(CursorType action, Event &event);
+ virtual void remove();
};
class GunAndWig: public NamedObject {
public:
@@ -141,6 +142,7 @@ class Scene415: public SceneExt {
class BulletsInset: public FocusObject {
public:
virtual bool startAction(CursorType action, Event &event);
+ virtual void remove();
};
class DashDrawer: public NamedObject {
public: