mirror of
https://github.com/libretro/scummvm.git
synced 2025-05-13 09:36:21 +00:00
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
This commit is contained in:
parent
325f60cbd7
commit
71ed35502e
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user