diff options
author | Paul Gilbert | 2011-10-09 21:04:15 +1100 |
---|---|---|
committer | Paul Gilbert | 2011-10-09 21:04:15 +1100 |
commit | 505c04701f95c4a5f98d821892e8a121d5478f8d (patch) | |
tree | b83849df81ce3f2b50d5a7ec637978f05e6f1f9d /engines/tsage/blue_force/blueforce_logic.cpp | |
parent | d83ae0840132c91058a6b3553c27445cfe24ae35 (diff) | |
download | scummvm-rg350-505c04701f95c4a5f98d821892e8a121d5478f8d.tar.gz scummvm-rg350-505c04701f95c4a5f98d821892e8a121d5478f8d.tar.bz2 scummvm-rg350-505c04701f95c4a5f98d821892e8a121d5478f8d.zip |
TSAGE: Added missing code for SceneExt::remove
Diffstat (limited to 'engines/tsage/blue_force/blueforce_logic.cpp')
-rw-r--r-- | engines/tsage/blue_force/blueforce_logic.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/tsage/blue_force/blueforce_logic.cpp b/engines/tsage/blue_force/blueforce_logic.cpp index b5465e7c40..87f1614389 100644 --- a/engines/tsage/blue_force/blueforce_logic.cpp +++ b/engines/tsage/blue_force/blueforce_logic.cpp @@ -681,6 +681,21 @@ void SceneExt::postInit(SceneObjectList *OwnerList) { } } +void SceneExt::remove() { + BF_GLOBALS._uiElements.hide(); + BF_GLOBALS._uiElements.resetClear(); + + // Below code originally in Blue Force Scene::remove(). Placed here to avoid contaminating + // core class with Blue Force specific code + if (_action) { + if (_action->_endHandler) + _action->_endHandler = NULL; + _action->remove(); + } + + _focusObject = NULL; +} + void SceneExt::process(Event &event) { _objArray2.process(event); if (!event.handled) |