aboutsummaryrefslogtreecommitdiff
path: root/sword1
diff options
context:
space:
mode:
authorRobert Göffringmann2004-01-01 17:18:00 +0000
committerRobert Göffringmann2004-01-01 17:18:00 +0000
commit82ef464a69e7e8f8b0f06f1649af2507bc2b5d8c (patch)
tree29cb57ed5e403836fc8c7fb91d9f1d60798a499e /sword1
parenta55c9976e2758e65d3ae518d64df637877bce828 (diff)
downloadscummvm-rg350-82ef464a69e7e8f8b0f06f1649af2507bc2b5d8c.tar.gz
scummvm-rg350-82ef464a69e7e8f8b0f06f1649af2507bc2b5d8c.tar.bz2
scummvm-rg350-82ef464a69e7e8f8b0f06f1649af2507bc2b5d8c.zip
fixed savename drawing.
svn-id: r12074
Diffstat (limited to 'sword1')
-rw-r--r--sword1/control.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/sword1/control.cpp b/sword1/control.cpp
index 1216220aea..5fc2508cec 100644
--- a/sword1/control.cpp
+++ b/sword1/control.cpp
@@ -284,6 +284,8 @@ uint8 SwordControl::getClicks(uint8 mode, uint8 *retVal) {
if (_buttons[cnt]->wasClicked(_mouseX, _mouseY)) {
_selectedButton = cnt;
_buttons[cnt]->setSelected(1);
+ if (_buttons[cnt]->isSaveslot())
+ showSavegameNames();
}
if (_mouseState & BS1L_BUTTON_UP) {
for (uint8 cnt = 0; cnt < _numButtons; cnt++)
@@ -295,8 +297,11 @@ uint8 SwordControl::getClicks(uint8 mode, uint8 *retVal) {
_selectedButton = 255;
return handleButtonClick(_buttons[cnt]->_id, mode, retVal);
}
- if (_selectedButton < _numButtons)
+ if (_selectedButton < _numButtons) {
_buttons[_selectedButton]->setSelected(0);
+ if (_buttons[_selectedButton]->isSaveslot())
+ showSavegameNames();
+ }
_selectedButton = 255;
}
return 0;