From 36ab10f291fe3ffbac19cc0175e76ba21aa033f1 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 22 Sep 2011 20:50:37 +1000 Subject: TSAGE: Bugfix for Exit cursor remaining active after leaving motorcycle --- engines/tsage/blue_force/blueforce_scenes0.cpp | 8 ++++++++ engines/tsage/blue_force/blueforce_scenes0.h | 1 + 2 files changed, 9 insertions(+) (limited to 'engines/tsage/blue_force') diff --git a/engines/tsage/blue_force/blueforce_scenes0.cpp b/engines/tsage/blue_force/blueforce_scenes0.cpp index ad748d698f..40557d74de 100644 --- a/engines/tsage/blue_force/blueforce_scenes0.cpp +++ b/engines/tsage/blue_force/blueforce_scenes0.cpp @@ -1097,6 +1097,14 @@ void Scene60::postInit(SceneObjectList *OwnerList) { } } +void Scene60::remove() { + BF_GLOBALS._player.enableControl(); + BF_GLOBALS._events.setCursor(_cursorId); + + if (_cursorId == CURSOR_EXIT) + BF_GLOBALS._events.setCursor(CURSOR_USE); +} + void Scene60::signal() { ++_sceneMode; BF_GLOBALS._player.enableControl(); diff --git a/engines/tsage/blue_force/blueforce_scenes0.h b/engines/tsage/blue_force/blueforce_scenes0.h index 9c401f3763..f3fcbb9eea 100644 --- a/engines/tsage/blue_force/blueforce_scenes0.h +++ b/engines/tsage/blue_force/blueforce_scenes0.h @@ -177,6 +177,7 @@ public: Scene60(); virtual void synchronize(Serializer &s); virtual void postInit(SceneObjectList *OwnerList = NULL); + virtual void remove(); virtual void signal(); virtual void dispatch(); }; -- cgit v1.2.3