Skip to content

Commit

Permalink
TSAGE: Renamings for R2R elevator shaft
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Sep 19, 2013
1 parent 448063a commit f9f4f4e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions engines/tsage/ringworld2/ringworld2_scenes1.cpp
Expand Up @@ -12917,9 +12917,10 @@ void Scene1900::signal() {
}

/*--------------------------------------------------------------------------
* Scene 1925 -
* Scene 1925 - Spill Mountains Elevator Shaft
*
*--------------------------------------------------------------------------*/

Scene1925::Scene1925() {
_field9B8 = 0;
for (int i = 0; i < 5; i++)
Expand All @@ -12934,7 +12935,7 @@ void Scene1925::synchronize(Serializer &s) {
s.syncAsSint16LE(_levelResNum[i]);
}

bool Scene1925::Hotspot2::startAction(CursorType action, Event &event) {
bool Scene1925::Button::startAction(CursorType action, Event &event) {
Scene1925 *scene = (Scene1925 *)R2_GLOBALS._sceneManager._scene;

if (action != CURSOR_USE)
Expand Down Expand Up @@ -13092,7 +13093,7 @@ void Scene1925::changeLevel(bool upFlag) {
break;
case 3:
loadScene(_levelResNum[4]);
_item2.setDetails(Rect(133, 68, 140, 77), 1925, 3, -1, 5, 2, NULL);
_button.setDetails(Rect(133, 68, 140, 77), 1925, 3, -1, 5, 2, NULL);
_actor1.setDetails(1925, 0, 1, 2, 2, (SceneItem *) NULL);
_actor1.show();
break;
Expand All @@ -13101,7 +13102,7 @@ void Scene1925::changeLevel(bool upFlag) {
// No break on purpose
default:
loadScene(_levelResNum[(R2_GLOBALS._scene1925CurrLevel % 4)]);
R2_GLOBALS._sceneItems.remove(&_item2);
R2_GLOBALS._sceneItems.remove(&_button);
R2_GLOBALS._sceneItems.remove(&_actor1);
_actor1.hide();
break;
Expand Down Expand Up @@ -13140,7 +13141,7 @@ void Scene1925::postInit(SceneObjectList *OwnerList) {
break;
case 3:
_actor1.setDetails(1925, 0, 1, 2, 1, (SceneItem *) NULL);
_item2.setDetails(Rect(133, 68, 140, 77), 1925, 3, -1, 5, 1, NULL);
_button.setDetails(Rect(133, 68, 140, 77), 1925, 3, -1, 5, 1, NULL);
// No break on purpose
case -3:
_exit3.setDetails(Rect(83, 38, 128, 101), EXITCURSOR_W, 1925);
Expand Down
4 changes: 2 additions & 2 deletions engines/tsage/ringworld2/ringworld2_scenes1.h
Expand Up @@ -1011,7 +1011,7 @@ class Scene1900 : public SceneExt {
};

class Scene1925 : public SceneExt {
class Hotspot2 : public NamedHotspot {
class Button : public NamedHotspot {
public:
virtual bool startAction(CursorType action, Event &event);
};
Expand All @@ -1038,7 +1038,7 @@ class Scene1925 : public SceneExt {
};
public:
NamedHotspot _item1;
Hotspot2 _item2;
Button _button;
Hotspot3 _item3;
SceneActor _actor1;
ExitUp _exitUp;
Expand Down

0 comments on commit f9f4f4e

Please sign in to comment.