aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2013-09-05 01:48:16 +0200
committerStrangerke2013-09-05 01:48:16 +0200
commit71af29e9794eb9bc4d597068a44e19e06d0bb28e (patch)
tree6fa448b05ec42701907ada826c5dfbc21fdb3944
parentd52c41011846c363e7507c723ef81b1b0b55909a (diff)
downloadscummvm-rg350-71af29e9794eb9bc4d597068a44e19e06d0bb28e.tar.gz
scummvm-rg350-71af29e9794eb9bc4d597068a44e19e06d0bb28e.tar.bz2
scummvm-rg350-71af29e9794eb9bc4d597068a44e19e06d0bb28e.zip
AVALANCHE: Remove dead code reported by CppCheck
-rw-r--r--engines/avalanche/acci2.cpp4
-rw-r--r--engines/avalanche/avalanche.cpp16
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++) {