diff options
author | Robert Göffringmann | 2003-12-23 17:34:23 +0000 |
---|---|---|
committer | Robert Göffringmann | 2003-12-23 17:34:23 +0000 |
commit | 88d7cd586d49aa9133383d95833e7129f1ae22ee (patch) | |
tree | 7827e87faab234a15b38052fa06c85b2994da36b | |
parent | e35a7a2b9073e29273ff53ce1158a977b3428e52 (diff) | |
download | scummvm-rg350-88d7cd586d49aa9133383d95833e7129f1ae22ee.tar.gz scummvm-rg350-88d7cd586d49aa9133383d95833e7129f1ae22ee.tar.bz2 scummvm-rg350-88d7cd586d49aa9133383d95833e7129f1ae22ee.zip |
fix control panel bug
svn-id: r11878
-rw-r--r-- | sword1/control.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sword1/control.cpp b/sword1/control.cpp index b493df4f48..de2cad84b7 100644 --- a/sword1/control.cpp +++ b/sword1/control.cpp @@ -254,8 +254,8 @@ uint8 SwordControl::handleButtonClick(uint8 id, uint8 mode, uint8 *retVal) { else if (id == BUTTON_TEXT) { SwordEngine::_systemVars.showText ^= 1; _buttons[6]->setSelected(SwordEngine::_systemVars.showText); - } else - return 0; + } + break; case BUTTON_SAVE_PANEL: case BUTTON_RESTORE_PANEL: if ((id >= BUTTON_SCROLL_UP_FAST) && (id <= BUTTON_SCROLL_DOWN_FAST)) @@ -274,6 +274,7 @@ uint8 SwordControl::handleButtonClick(uint8 id, uint8 mode, uint8 *retVal) { } } else if (id == BUTTON_SAVE_CANCEL) return BUTTON_MAIN_PANEL; // mode down to main panel + break; case BUTTON_VOLUME_PANEL: return id; } |