From 71af29e9794eb9bc4d597068a44e19e06d0bb28e Mon Sep 17 00:00:00 2001 From: Strangerke Date: Thu, 5 Sep 2013 01:48:16 +0200 Subject: AVALANCHE: Remove dead code reported by CppCheck --- engines/avalanche/acci2.cpp | 4 +--- engines/avalanche/avalanche.cpp | 16 +++++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/engines/avalanche/acci2.cpp b/engines/avalanche/acci2.cpp index 6256aa9f47..28077f1d24 100644 --- a/engines/avalanche/acci2.cpp +++ b/engines/avalanche/acci2.cpp @@ -1383,9 +1383,7 @@ void Acci::doThat() { else if (isPersonHere()) _vm->_visa->talkto(_person); } - } else if (_person == kPardon) - _vm->_scrolls->display("Talk to whom?"); - else if (isPersonHere()) + } else if (isPersonHere()) _vm->_visa->talkto(_person); break; case kVerbCodeGive: diff --git a/engines/avalanche/avalanche.cpp b/engines/avalanche/avalanche.cpp index c6ca485b97..cd83d54424 100644 --- a/engines/avalanche/avalanche.cpp +++ b/engines/avalanche/avalanche.cpp @@ -271,13 +271,15 @@ void AvalancheEngine::synchronize(Common::Serializer &sz) { sz.syncAsByte(_gyro->dna.asked_dogfood_about_nim); - //for (byte groi = 0; groi < numtr; groi++) { - // if (tr[groi].quick) { - // blockwrite(f, groi, 1); - // tr[groi].savedata(f); - // } - //} - +#if 0 + for (byte groi = 0; groi < numtr; groi++) { + if (tr[groi].quick) { + blockwrite(f, groi, 1); + tr[groi].savedata(f); + } + } +#endif + byte spriteNum = 0; if (sz.isSaving()) { for (byte i = 0; i < _trip->numtr; i++) { -- cgit v1.2.3