diff options
author | strangerke | 2011-04-05 21:22:00 +0200 |
---|---|---|
committer | strangerke | 2011-04-05 21:22:00 +0200 |
commit | e4d7f708053a5738028a76d03bdbcd677bd6fd96 (patch) | |
tree | 9b188a2ec9d194e995f9841e8cf32f38f7c52deb /engines | |
parent | a33001388b9b33c798bdfa9df8b53927d4f4015f (diff) | |
download | scummvm-rg350-e4d7f708053a5738028a76d03bdbcd677bd6fd96.tar.gz scummvm-rg350-e4d7f708053a5738028a76d03bdbcd677bd6fd96.tar.bz2 scummvm-rg350-e4d7f708053a5738028a76d03bdbcd677bd6fd96.zip |
TSAGE: rename an object in scene9500, fix 2 bugs, remove debug strings
Diffstat (limited to 'engines')
-rw-r--r-- | engines/tsage/ringworld_scenes10.cpp | 27 | ||||
-rw-r--r-- | engines/tsage/ringworld_scenes10.h | 2 |
2 files changed, 14 insertions, 15 deletions
diff --git a/engines/tsage/ringworld_scenes10.cpp b/engines/tsage/ringworld_scenes10.cpp index 41bf7047f6..0afaedd26b 100644 --- a/engines/tsage/ringworld_scenes10.cpp +++ b/engines/tsage/ringworld_scenes10.cpp @@ -76,7 +76,6 @@ void Scene9100::dispatch() { if (!_action) { if (_globals->_player._position.x < 25) { - warning("There"); if (!_globals->getFlag(11)) { scene->_sceneMode = 9106; } else { @@ -1037,7 +1036,7 @@ void Scene9500::Hotspot3::doAction(int action) { scene->_sceneMode = 9505; _globals->_player.disableControl(); _globals->_sceneItems.remove(this); - scene->setAction(&scene->_sequenceManager, scene, 9511, &_globals->_player, &scene->_object1, 0); + scene->setAction(&scene->_sequenceManager, scene, 9505, &_globals->_player, &scene->_candle, 0); } else { SceneHotspot_3::doAction(action); } @@ -1047,7 +1046,7 @@ void Scene9500::Hotspot4::doAction(int action) { Scene9500 *scene = (Scene9500 *)_globals->_sceneManager._scene; if (action == OBJECT_CANDLE) { - _globals->_player.disableControl(); + _globals->_player.disableControl(); if (_globals->_inventory._straw._sceneNumber == 9500) { scene->_sceneMode = 9506; _globals->_sceneItems.remove(&scene->_hotspot5); @@ -1078,7 +1077,7 @@ void Scene9500::signal() { _globals->_sceneManager.changeScene(9850); break; case 9505: - _object1.setStrip(2); + _candle.setStrip(2); _globals->_player.enableControl(); break; case 9506: @@ -1130,13 +1129,13 @@ void Scene9500::postInit(SceneObjectList *OwnerList) { _globals->_player.postInit(); _globals->_soundHandler.startSound(305, 0, 127); - _object1.postInit(0); - _object1.setVisage(9500); - _object1.setStrip(1); - _object1.animate(ANIM_MODE_2); - _object1.setPosition(Common::Point(30, 105), 0); + _candle.postInit(0); + _candle.setVisage(9500); + _candle.setStrip(1); + _candle.animate(ANIM_MODE_2); + _candle.setPosition(Common::Point(30, 105), 0); if (_globals->_inventory._candle._sceneNumber != 9500) - _object1.setStrip(2); + _candle.setStrip(2); _object3.postInit(0); _object3.flag100(); @@ -1181,7 +1180,7 @@ void Scene9500::postInit(SceneObjectList *OwnerList) { _hotspot7.quickInit(100, 70, 125, 139, 9500, 2, 3); if (!_globals->getFlag(85)) { - _hotspot5.quickInit(111, 68, 155, 244, 950, 17, -1); + _hotspot5.quickInit(111, 68, 155, 244, 9500, 17, -1); _hotspot4.quickInit(57, 71, 120, 126, 9500, 16, -1); } @@ -1203,8 +1202,8 @@ void Scene9500::postInit(SceneObjectList *OwnerList) { if ((_globals->_sceneManager._previousScene == 9200) || (_globals->_sceneManager._previousScene != 9850)) { _sceneMode = 0; - if (_globals->_inventory._helmet._sceneNumber == 1) { - setAction(&_sequenceManager, this, 9501, &_globals->_player, &_object1, 0); + if (_globals->_inventory._helmet._sceneNumber != 1) { + setAction(&_sequenceManager, this, 9501, &_globals->_player, &_candle, 0); } else { _globals->_inventory._helmet._sceneNumber = 9500; _hotspot2.quickInit(87, 294, 104, 314, 9400, 17, -1); @@ -1212,7 +1211,7 @@ void Scene9500::postInit(SceneObjectList *OwnerList) { } } else { _sceneMode = 0; - setAction(&_sequenceManager, this, 9502, &_globals->_player, &_object1, 0); + setAction(&_sequenceManager, this, 9502, &_globals->_player, &_candle, 0); } } diff --git a/engines/tsage/ringworld_scenes10.h b/engines/tsage/ringworld_scenes10.h index 5300eaa3be..4f31f9bb3e 100644 --- a/engines/tsage/ringworld_scenes10.h +++ b/engines/tsage/ringworld_scenes10.h @@ -303,7 +303,7 @@ class Scene9500: public Scene2 { public: SequenceManager _sequenceManager; - SceneObject _object1; + SceneObject _candle; SceneObject _object2; SceneObject _object3; Hotspot1 _hotspot1; |