Skip to content

Commit

Permalink
TSAGE: Fix a serie of bugs in scenes 4045 and 4000
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed May 17, 2011
1 parent a47d2aa commit 0ff4897
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions engines/tsage/ringworld_scenes5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,6 @@ void Scene4000::postInit(SceneObjectList *OwnerList) {
_globals->_player.enableControl();

if (RING_INVENTORY._ladder._sceneNumber != 4000) {
_hotspot8.postInit();
_hotspot8.setVisage(4017);
_hotspot8.animate(ANIM_MODE_1, NULL);
_hotspot8.setPosition(Common::Point(199, 188));
Expand All @@ -1005,8 +1004,9 @@ void Scene4000::postInit(SceneObjectList *OwnerList) {
_olo.setObjectWrapper(new SceneObjectWrapper());
_olo.setPosition(Common::Point(219, 150));

_sceneMode = 4010;
_globals->_player.disableControl();
setAction(&_sequenceManager1, this, 4010, &_globals->_player, NULL);
setAction(&_sequenceManager1, this, 4010, &_globals->_player, &_olo, NULL);
}

if (_globals->_stripNum == 4000) {
Expand Down Expand Up @@ -1133,6 +1133,10 @@ void Scene4000::postInit(SceneObjectList *OwnerList) {

void Scene4000::signal() {
switch (_sceneMode) {
case 4010:
_globals->setFlag(38);
_olo.remove();
// Deliberate fall-through
case 4001:
_globals->_player.enableControl();
break;
Expand Down Expand Up @@ -1165,10 +1169,6 @@ void Scene4000::signal() {
case 4009:
_globals->_sceneManager.changeScene(2200);
break;
case 4010:
_globals->setFlag(38);
_olo.remove();
break;
case 4012:
_globals->_player.checkAngle(&_theTech);
_globals->_sceneManager.changeScene(4025);
Expand Down Expand Up @@ -1998,7 +1998,7 @@ void Scene4045::dispatch() {
}

/*--------------------------------------------------------------------------
* Scene 4000 - Village - Temple
* Scene 4050 - Village - Outside
*
*--------------------------------------------------------------------------*/

Expand Down
4 changes: 2 additions & 2 deletions engines/tsage/ringworld_scenes5.h
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ class Scene4045 : public Scene {
DisplayHotspot _hotspot7, _hotspot8, _hotspot9, _hotspot10;
DisplayHotspot _hotspot11, _hotspot12, _hotspot13, _hotspot14;
Action1 _action1;
Action _action2;
Action _action3;
Action2 _action2;
Action3 _action3;

Scene4045();
virtual void postInit(SceneObjectList *OwnerList = NULL);
Expand Down

0 comments on commit 0ff4897

Please sign in to comment.