MOHAWK: Change the Riven options dialog's cancel button not to save the settings

This commit is contained in:
Bastien Bouclet 2016-07-04 19:29:52 +02:00
parent 0c57c99f00
commit d35d8efc50

View File

@ -255,13 +255,9 @@ void RivenOptionsDialog::open() {
void RivenOptionsDialog::handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data) {
switch (cmd) {
case kZipCmd:
_vm->_vars["azip"] = _zipModeCheckbox->getState() ? 1 : 0;
break;
case kWaterCmd:
_vm->_vars["waterenabled"] = _waterEffectCheckbox->getState() ? 1 : 0;
break;
case GUI::kOKCmd:
_vm->_vars["azip"] = _zipModeCheckbox->getState() ? 1 : 0;
_vm->_vars["waterenabled"] = _waterEffectCheckbox->getState() ? 1 : 0;
setResult(1);
close();
break;