cleanup
svn-id: r4539
This commit is contained in:
parent
dfdd2d407d
commit
101613f6fd
1 changed files with 23 additions and 23 deletions
10
gui.cpp
10
gui.cpp
|
@ -598,8 +598,9 @@ void Gui::leftMouseClick(int x, int y)
|
|||
|
||||
void Gui::handleSoundDialogCommand(int cmd)
|
||||
{
|
||||
if (cmd == 40 || cmd == 50) {
|
||||
if (cmd == 40) {
|
||||
if (cmd == 50) {
|
||||
close();
|
||||
} else if (cmd == 40) {
|
||||
_s->_sound_volume_master = _gui_variables[0]; // Master
|
||||
_s->_sound_volume_music = _gui_variables[1]; // Music
|
||||
_s->_sound_volume_sfx = _gui_variables[2]; // SFX
|
||||
|
@ -612,11 +613,9 @@ void Gui::handleSoundDialogCommand(int cmd)
|
|||
scummcfg->set("music_volume", _s->_sound_volume_music);
|
||||
scummcfg->set("sfx_volume", _s->_sound_volume_sfx);
|
||||
scummcfg->flush();
|
||||
}
|
||||
|
||||
close();
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
if ((cmd % 10) == 1) {
|
||||
if (_gui_variables[cmd / 10] < 100)
|
||||
_gui_variables[cmd / 10] += 5;
|
||||
|
@ -627,6 +626,7 @@ void Gui::handleSoundDialogCommand(int cmd)
|
|||
|
||||
draw((cmd / 10) * 10 + 3, (cmd / 10) * 10 + 3);
|
||||
}
|
||||
}
|
||||
|
||||
void Gui::handleOptionsDialogCommand(int cmd)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue