diff options
author | Paul Gilbert | 2011-10-18 22:47:47 +1100 |
---|---|---|
committer | Paul Gilbert | 2011-10-18 22:47:47 +1100 |
commit | 7f13c9ee0e10e5f47796334a52033248e4620749 (patch) | |
tree | 597018fe4c71693fcd862740652d12fd18fb458a | |
parent | 98b6f74accb04cd894010cda763d07261729d92b (diff) | |
download | scummvm-rg350-7f13c9ee0e10e5f47796334a52033248e4620749.tar.gz scummvm-rg350-7f13c9ee0e10e5f47796334a52033248e4620749.tar.bz2 scummvm-rg350-7f13c9ee0e10e5f47796334a52033248e4620749.zip |
TSAGE: Bugfix for getting boat hook from fire box
-rw-r--r-- | engines/tsage/blue_force/blueforce_scenes3.cpp | 24 | ||||
-rw-r--r-- | engines/tsage/blue_force/blueforce_scenes3.h | 8 |
2 files changed, 16 insertions, 16 deletions
diff --git a/engines/tsage/blue_force/blueforce_scenes3.cpp b/engines/tsage/blue_force/blueforce_scenes3.cpp index d53c0f6408..12076cb9bd 100644 --- a/engines/tsage/blue_force/blueforce_scenes3.cpp +++ b/engines/tsage/blue_force/blueforce_scenes3.cpp @@ -2484,7 +2484,7 @@ void Scene342::dispatch() { * *--------------------------------------------------------------------------*/ -bool Scene350::Item5::startAction(CursorType action, Event &event) { +bool Scene350::FireBox::startAction(CursorType action, Event &event) { Scene350 *scene = (Scene350 *)BF_GLOBALS._sceneManager._scene; switch (action) { @@ -2571,7 +2571,7 @@ bool Scene350::Hook::startAction(CursorType action, Event &event) { } } -bool Scene350::Object5::startAction(CursorType action, Event &event) { +bool Scene350::FireboxInset::startAction(CursorType action, Event &event) { Scene350 *scene = (Scene350 *)BF_GLOBALS._sceneManager._scene; switch (action) { @@ -2579,7 +2579,7 @@ bool Scene350::Object5::startAction(CursorType action, Event &event) { SceneItem::display2(350, BF_INVENTORY.getObjectScene(INV_HOOK) ? 29 : 28); return true; case CURSOR_USE: - scene->_object5.remove(); + scene->_fireBoxInset.remove(); return true; case INV_HOOK: BF_INVENTORY.setObjectScene(INV_HOOK, 350); @@ -2592,7 +2592,7 @@ bool Scene350::Object5::startAction(CursorType action, Event &event) { BF_GLOBALS._sceneItems.push_front(&scene->_hook); return true; default: - return NamedObject::startAction(action, event); + return FocusObject::startAction(action, event); } } @@ -2672,8 +2672,8 @@ void Scene350::postInit(SceneObjectList *OwnerList) { } } - _item5._sceneRegionId = 5; - BF_GLOBALS._sceneItems.push_back(&_item5); + _fireBox._sceneRegionId = 5; + BF_GLOBALS._sceneItems.push_back(&_fireBox); _item4.setDetails(15, 350, 0, 1, 2, 1); BF_GLOBALS._sceneItems.push_back(&_yacht); @@ -2729,12 +2729,12 @@ void Scene350::signal() { case 3: BF_GLOBALS._player.setStrip(8); - _object5.postInit(); - _object5.setVisage(350); - _object5.setStrip(4); - _object5.fixPriority(200); - _object5.setPosition(Common::Point(85, 166)); - BF_GLOBALS._sceneItems.push_front(&_object5); + _fireBoxInset.postInit(); + _fireBoxInset.setVisage(350); + _fireBoxInset.setStrip(4); + _fireBoxInset.fixPriority(200); + _fireBoxInset.setPosition(Common::Point(85, 166)); + BF_GLOBALS._sceneItems.push_front(&_fireBoxInset); if (BF_INVENTORY.getObjectScene(INV_HOOK) == 350) { _hook.postInit(); diff --git a/engines/tsage/blue_force/blueforce_scenes3.h b/engines/tsage/blue_force/blueforce_scenes3.h index 86150433fd..f01c011233 100644 --- a/engines/tsage/blue_force/blueforce_scenes3.h +++ b/engines/tsage/blue_force/blueforce_scenes3.h @@ -432,7 +432,7 @@ public: class Scene350: public SceneExt { /* Items */ - class Item5: public NamedHotspot { + class FireBox: public NamedHotspot { public: virtual bool startAction(CursorType action, Event &event); }; @@ -454,7 +454,7 @@ class Scene350: public SceneExt { public: virtual bool startAction(CursorType action, Event &event); }; - class Object5: public NamedObject { + class FireboxInset: public FocusObject { public: virtual bool startAction(CursorType action, Event &event); }; @@ -470,9 +470,9 @@ public: SceneObject _yachtDoor; BackgroundSceneObject _yachtBody; Hook _hook; - Object5 _object5; + FireboxInset _fireBoxInset; NamedHotspot _item1, _item2, _item3, _item4; - Item5 _item5; + FireBox _fireBox; Yacht _yacht; SouthWestExit _swExit; SpeakerGameText _gameTextSpeaker; |