diff options
Diffstat (limited to 'engines/avalanche/parser.cpp')
-rw-r--r-- | engines/avalanche/parser.cpp | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/engines/avalanche/parser.cpp b/engines/avalanche/parser.cpp index 112dce93ac..26c3cbd75a 100644 --- a/engines/avalanche/parser.cpp +++ b/engines/avalanche/parser.cpp @@ -689,6 +689,8 @@ bool Parser::doPronouns() { displayWhat(_vm->_it, false, ambiguous); _thats.setChar(_vm->_it, i); break; + default: + break; } } @@ -755,6 +757,8 @@ void Parser::storeInterrogation(byte interrogation) { //store_high(_inputText); warning("STUB: Parser::store_interrogation()"); break; + default: + break; } if (interrogation < 4) @@ -979,19 +983,23 @@ void Parser::examineObject() { // Vinegar _vm->_dialogs->displayScrollChain('D', 7); break; + default: + break; } break; case kObjectOnion: - if (_vm->_rottenOnion) + if (_vm->_rottenOnion) { // Yucky onion _vm->_dialogs->displayScrollChain('Q', 21); - else + } else { // Normal onion _vm->_dialogs->displayScrollChain('T', 18); + } break; default: // Ordinarily _vm->_dialogs->displayScrollChain('T', _thing); + break; } } @@ -1157,6 +1165,8 @@ void Parser::swallow() { // You can't drink it! _vm->_dialogs->displayScrollChain('D', 8); break; + default: + break; } break; case kObjectPotion: @@ -1272,6 +1282,8 @@ void Parser::lookAround() { // Outside Geida's room. _vm->_dialogs->displayScrollChain('Q', 82); break; + default: + break; } break; default: @@ -1326,6 +1338,10 @@ void Parser::openDoor() { case kMagicOpenDoor: _vm->openDoor((Room)(portal->_data >> 8), portal->_data & 0x0F, i + 9); break; + case kMagicBounce: // Not valid for portals. + case kMagicNothing: + default: + break; } return; @@ -1373,8 +1389,9 @@ void Parser::putProc() { _vm->_dialogs->displayScrollChain('U', 9); } } - } else + } else { _vm->_dialogs->saySilly(); + } break; case 54: @@ -1415,12 +1432,14 @@ void Parser::putProc() { } } } - } else + } else { _vm->_dialogs->saySilly(); + } break; default: _vm->_dialogs->saySilly(); + break; } } @@ -2194,6 +2213,8 @@ void Parser::doThat() { _vm->_timer->addTimer(27, Timer::kProcBuyWine, Timer::kReasonDrinks); } break; + default: + break; } } else // Go to the bar! |