From a41db1939cdff632d16aa3849e23b844c46bafef Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sun, 16 Feb 2014 19:25:32 +0100 Subject: TSAGE: Fix bug #6519 - Mouse pointer behavior in dialog menu --- engines/tsage/ringworld2/ringworld2_dialogs.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'engines/tsage') 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() { -- cgit v1.2.3