aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche
diff options
context:
space:
mode:
authorStrangerke2013-09-07 21:51:00 +0200
committerStrangerke2013-09-07 21:51:00 +0200
commit6383c7397d221bc77d79351d04afa8c7b7daa007 (patch)
tree77c7728d7f66c67923e4ff04f344c69700c64afe /engines/avalanche
parentfcd32da8654c1308f3f77d886b3bc899bf6fd85c (diff)
downloadscummvm-rg350-6383c7397d221bc77d79351d04afa8c7b7daa007.tar.gz
scummvm-rg350-6383c7397d221bc77d79351d04afa8c7b7daa007.tar.bz2
scummvm-rg350-6383c7397d221bc77d79351d04afa8c7b7daa007.zip
AVALANCHE: Fix one more Clang warning
Diffstat (limited to 'engines/avalanche')
-rw-r--r--engines/avalanche/lucerna2.cpp10
1 files changed, 3 insertions, 7 deletions
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);