aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent
diff options
context:
space:
mode:
authorTorbjörn Andersson2013-07-19 20:49:15 +0200
committerTorbjörn Andersson2013-07-19 20:49:15 +0200
commit71ed35502e218a11c16af624ef5a0a77296184cf (patch)
tree6632e63f3559db91e307cb5e5dd0a8836ce67b2a /engines/teenagent
parent325f60cbd732b5a3d4e932063d764009ef7f8121 (diff)
downloadscummvm-rg350-71ed35502e218a11c16af624ef5a0a77296184cf.tar.gz
scummvm-rg350-71ed35502e218a11c16af624ef5a0a77296184cf.tar.bz2
scummvm-rg350-71ed35502e218a11c16af624ef5a0a77296184cf.zip
TEENAGENT: Add missing "break"s to switch cases
I think this is the correct thing to do, and that it won't have any noticeable effect whatsoever. Cases 29 and 30 happen in the first half of the game, in the cantine, while case 42 happens in the second half of the game. By the time you reach the point where case 42 does something, I don't think it's possible to get back to cases 29 and 30, so when case 29 falls through neither 30 nor 42 will do anything. CID 1003730, 1003731
Diffstat (limited to 'engines/teenagent')
-rw-r--r--engines/teenagent/resources.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/teenagent/resources.cpp b/engines/teenagent/resources.cpp
index 442d0abf16..399baf469f 100644
--- a/engines/teenagent/resources.cpp
+++ b/engines/teenagent/resources.cpp
@@ -206,16 +206,19 @@ Common::SeekableReadStream *Resources::loadLan000(uint32 id) const {
if (dseg.get_byte(dsAddr_birdOnBarRadioAntennaFlag) == 1) {
return lan500.getStream(380);
}
+ break;
case 30:
if (dseg.get_byte(dsAddr_birdOnBarRadioAntennaFlag) == 1) {
return lan500.getStream(381);
}
+ break;
case 42:
if (dseg.get_byte(dsAddr_johnNotyOutsideMansionDoorFlag) == 1) {
return lan500.getStream(400);
}
+ break;
}
return lan000.getStream(id);
}