diff options
author | Paul Gilbert | 2011-09-22 20:50:37 +1000 |
---|---|---|
committer | Paul Gilbert | 2011-09-22 20:50:37 +1000 |
commit | 36ab10f291fe3ffbac19cc0175e76ba21aa033f1 (patch) | |
tree | 8207501ca742dfaa2937fa200c3f778a7a8b1d76 /engines | |
parent | b807041ad2527a355be6c1eb56e659e6daac0cb7 (diff) | |
download | scummvm-rg350-36ab10f291fe3ffbac19cc0175e76ba21aa033f1.tar.gz scummvm-rg350-36ab10f291fe3ffbac19cc0175e76ba21aa033f1.tar.bz2 scummvm-rg350-36ab10f291fe3ffbac19cc0175e76ba21aa033f1.zip |
TSAGE: Bugfix for Exit cursor remaining active after leaving motorcycle
Diffstat (limited to 'engines')
-rw-r--r-- | engines/tsage/blue_force/blueforce_scenes0.cpp | 8 | ||||
-rw-r--r-- | engines/tsage/blue_force/blueforce_scenes0.h | 1 |
2 files changed, 9 insertions, 0 deletions
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(); }; |