diff options
Diffstat (limited to 'engines/titanic/room_flags.cpp')
-rw-r--r-- | engines/titanic/room_flags.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/titanic/room_flags.cpp b/engines/titanic/room_flags.cpp index b64b6509ca..ac378e20c1 100644 --- a/engines/titanic/room_flags.cpp +++ b/engines/titanic/room_flags.cpp @@ -509,4 +509,11 @@ void CRoomFlags::setRandomLocation(int classNum, bool flag) { } while (_data == 0x59706); } +int CRoomFlags::whatPassengerClass(int floorNum) { + if (is2To19(floorNum)) + return 1; + + return is20To27(floorNum) ? 2 : 3; +} + } // End of namespace Titanic |