Skip to content

Commit

Permalink
TSAGE: R2R - Fix several erroneous references to BF_GLOBALS
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Dec 5, 2011
1 parent 63f2457 commit dc62da9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions engines/tsage/ringworld2/ringworld2_dialogs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ RightClickDialog::RightClickDialog() : GfxDialog() {
_btnList[5] = Common::Point(83, 47);

// Set the palette and change the cursor
BF_GLOBALS._events.setCursor(CURSOR_ARROW);
R2_GLOBALS._events.setCursor(CURSOR_ARROW);

setPalette();

Expand Down Expand Up @@ -185,7 +185,7 @@ void RightClickDialog::execute() {
}

if (cursorNum != CURSOR_NONE)
BF_GLOBALS._events.setCursor(cursorNum);
R2_GLOBALS._events.setCursor(cursorNum);

_gfxManager.deactivate();
}
Expand Down Expand Up @@ -345,7 +345,7 @@ CharacterDialog::CharacterDialog() {

void HelpDialog::show() {
// Set the palette and change the cursor
BF_GLOBALS._events.setCursor(CURSOR_ARROW);
R2_GLOBALS._events.setCursor(CURSOR_ARROW);

// Create the dialog and draw it
HelpDialog *dlg = new HelpDialog();
Expand Down
8 changes: 4 additions & 4 deletions engines/tsage/ringworld2/ringworld2_scenes2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ void Scene2000::Exit1::changeScene() {
warning("TODO: Check sub_22D26");
Common::Point pt(-10, 129);
NpcMover *mover = new NpcMover();
BF_GLOBALS._player.addMover(mover, &pt, scene);
R2_GLOBALS._player.addMover(mover, &pt, scene);

scene->setAction(&scene->_sequenceManager, scene, 206, &R2_GLOBALS._player, NULL);
}
Expand All @@ -575,7 +575,7 @@ void Scene2000::Exit2::changeScene() {
warning("TODO: Check sub_22D26");
Common::Point pt(330, 129);
NpcMover *mover = new NpcMover();
BF_GLOBALS._player.addMover(mover, &pt, scene);
R2_GLOBALS._player.addMover(mover, &pt, scene);
}

void Scene2000::Exit3::changeScene() {
Expand Down Expand Up @@ -1028,7 +1028,7 @@ void Scene2000::process(Event &event) {

Common::Point pt(event.mousePos.x, 129);
PlayerMover *mover = new PlayerMover();
BF_GLOBALS._player.addMover(mover, &pt, this);
R2_GLOBALS._player.addMover(mover, &pt, this);

event.handled = true;
}
Expand Down Expand Up @@ -1215,7 +1215,7 @@ void Scene2350::process(Event &event) {
(R2_GLOBALS._events.getCursor() == CURSOR_CROSSHAIRS)){
Common::Point pt(event.mousePos.x, 129);
PlayerMover *mover = new PlayerMover();
BF_GLOBALS._player.addMover(mover, &pt);
R2_GLOBALS._player.addMover(mover, &pt);
event.handled = true;
}
Scene::process(event);
Expand Down

0 comments on commit dc62da9

Please sign in to comment.