From 6383c7397d221bc77d79351d04afa8c7b7daa007 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sat, 7 Sep 2013 21:51:00 +0200 Subject: AVALANCHE: Fix one more Clang warning --- engines/avalanche/lucerna2.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'engines/avalanche') diff --git a/engines/avalanche/lucerna2.cpp b/engines/avalanche/lucerna2.cpp index 653d3ca477..1170ad32ff 100644 --- a/engines/avalanche/lucerna2.cpp +++ b/engines/avalanche/lucerna2.cpp @@ -835,26 +835,22 @@ void Lucerna::thinkAbout(byte object, bool type) { _vm->_gyro->setMousePointerWait(); - switch (type) { - case Gyro::kThing: + if (type == Gyro::kThing) { if (!file.open("thinks.avd")) { warning("AVALANCHE: Lucerna: File not found: thinks.avd"); return; } - break; - case Gyro::kPerson: + } else { // Gyro::kPerson if (!file.open("folk.avd")) { warning("AVALANCHE: Lucerna: File not found: folk.avd"); return; } - object = object - 149; + object -= 149; if (object >= 25) object -= 8; if (object == 20) object--; // Last time... - - break; } file.seek(object * picSize + 65); -- cgit v1.2.3