aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Bouclet2016-07-04 19:29:52 +0200
committerBastien Bouclet2016-07-04 20:47:16 +0200
commitd35d8efc5041813fd5fdd1fc55025c7835ab358e (patch)
tree0e23539412b8117f69013162cc027508a79d08f1
parent0c57c99f0026be1ef9fe3a575c18de070a2bf1cc (diff)
downloadscummvm-rg350-d35d8efc5041813fd5fdd1fc55025c7835ab358e.tar.gz
scummvm-rg350-d35d8efc5041813fd5fdd1fc55025c7835ab358e.tar.bz2
scummvm-rg350-d35d8efc5041813fd5fdd1fc55025c7835ab358e.zip
MOHAWK: Change the Riven options dialog's cancel button not to save the settings
-rw-r--r--engines/mohawk/dialogs.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/engines/mohawk/dialogs.cpp b/engines/mohawk/dialogs.cpp
index 2d49b13ee5..4ec18542ac 100644
--- a/engines/mohawk/dialogs.cpp
+++ b/engines/mohawk/dialogs.cpp
@@ -255,13 +255,9 @@ void RivenOptionsDialog::open() {
void RivenOptionsDialog::handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data) {
switch (cmd) {
- case kZipCmd:
+ case GUI::kOKCmd:
_vm->_vars["azip"] = _zipModeCheckbox->getState() ? 1 : 0;
- break;
- case kWaterCmd:
_vm->_vars["waterenabled"] = _waterEffectCheckbox->getState() ? 1 : 0;
- break;
- case GUI::kOKCmd:
setResult(1);
close();
break;