Skip to content

Commit

Permalink
TSAGE: Fix bug #6519 - Mouse pointer behavior in dialog menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Feb 16, 2014
1 parent f6a7e00 commit a41db19
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions engines/tsage/ringworld2/ringworld2_dialogs.cpp
Expand Up @@ -197,6 +197,11 @@ int RightClickDialog::execute() {

void CharacterDialog::show() {
CharacterDialog *dlg = new CharacterDialog();
CursorType cursorNum = R2_GLOBALS._events.getCursor();

// Reset the current cursor
R2_GLOBALS._events.setCursor(CURSOR_ARROW);

dlg->draw();

// Make the default button the currently active character
Expand Down Expand Up @@ -315,12 +320,11 @@ void CharacterDialog::show() {
}
}

// Reset the current cursor
R2_GLOBALS._events.setCursor(CURSOR_USE);

// Change to whichever scene the newly selected character is in
R2_GLOBALS._sceneManager.changeScene(R2_GLOBALS._player._characterScene[R2_GLOBALS._player._characterIndex]);
}
} else
// Restore previous cursor
R2_GLOBALS._events.setCursor(cursorNum);
}

CharacterDialog::CharacterDialog() {
Expand Down

0 comments on commit a41db19

Please sign in to comment.