diff options
author | Strangerke | 2014-02-16 19:25:32 +0100 |
---|---|---|
committer | Strangerke | 2014-02-16 19:25:32 +0100 |
commit | a41db1939cdff632d16aa3849e23b844c46bafef (patch) | |
tree | b10a152af8f017934dbf9eb664235d0af7dea2ee /engines/tsage | |
parent | f6a7e004079e6f16025bed2e3826c811831e44e3 (diff) | |
download | scummvm-rg350-a41db1939cdff632d16aa3849e23b844c46bafef.tar.gz scummvm-rg350-a41db1939cdff632d16aa3849e23b844c46bafef.tar.bz2 scummvm-rg350-a41db1939cdff632d16aa3849e23b844c46bafef.zip |
TSAGE: Fix bug #6519 - Mouse pointer behavior in dialog menu
Diffstat (limited to 'engines/tsage')
-rw-r--r-- | engines/tsage/ringworld2/ringworld2_dialogs.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/engines/tsage/ringworld2/ringworld2_dialogs.cpp b/engines/tsage/ringworld2/ringworld2_dialogs.cpp index 24504f2f5a..adc0856380 100644 --- a/engines/tsage/ringworld2/ringworld2_dialogs.cpp +++ b/engines/tsage/ringworld2/ringworld2_dialogs.cpp @@ -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 @@ -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() { |