aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage/ringworld2
diff options
context:
space:
mode:
authorStrangerke2014-02-16 19:25:32 +0100
committerStrangerke2014-02-16 19:25:32 +0100
commita41db1939cdff632d16aa3849e23b844c46bafef (patch)
treeb10a152af8f017934dbf9eb664235d0af7dea2ee /engines/tsage/ringworld2
parentf6a7e004079e6f16025bed2e3826c811831e44e3 (diff)
downloadscummvm-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/ringworld2')
-rw-r--r--engines/tsage/ringworld2/ringworld2_dialogs.cpp12
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() {