aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/dropdown.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/avalanche/dropdown.cpp')
-rw-r--r--engines/avalanche/dropdown.cpp30
1 files changed, 21 insertions, 9 deletions
diff --git a/engines/avalanche/dropdown.cpp b/engines/avalanche/dropdown.cpp
index ba4e452aaa..a8f902eb5a 100644
--- a/engines/avalanche/dropdown.cpp
+++ b/engines/avalanche/dropdown.cpp
@@ -526,6 +526,8 @@ void DropDownMenu::setupMenuWith() {
_activeMenuItem.setupOption("Buy an onion", 'o', "", !_vm->_objects[kObjectOnion - 1]);
_verbStr = _verbStr + 105;
break;
+ default:
+ break;
}
}
_activeMenuItem.display();
@@ -549,6 +551,8 @@ void DropDownMenu::runMenuGame() {
case 4:
_vm->callVerb(kVerbCodeInfo);
break;
+ default:
+ break;
}
}
@@ -576,6 +580,8 @@ void DropDownMenu::runMenuFile() {
case 5:
_vm->callVerb(kVerbCodeQuit);
break;
+ default:
+ break;
}
}
@@ -613,6 +619,8 @@ void DropDownMenu::runMenuAction() {
_vm->_animation->updateSpeed();
}
break;
+ default:
+ break;
}
}
@@ -809,23 +817,27 @@ Common::String DropDownMenu::getThing(byte which) {
switch (which) {
case kObjectWine:
switch (_vm->_wineState) {
- case 1:
- case 4:
- result = Common::String(things[which - 1]);
- break;
- case 3:
- result = "Vinegar";
- break;
+ case 1:
+ case 4:
+ result = Common::String(things[which - 1]);
+ break;
+ case 3:
+ result = "Vinegar";
+ break;
+ default:
+ break;
}
break;
case kObjectOnion:
- if (_vm->_rottenOnion)
+ if (_vm->_rottenOnion) {
result = Common::String("rotten onion");
- else
+ } else {
result = Common::String(things[which - 1]);
+ }
break;
default:
result = Common::String(things[which - 1]);
+ break;
}
return result;
}