diff options
author | Paul Gilbert | 2016-11-05 11:02:39 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-11-05 11:02:39 -0400 |
commit | 6eac69f45a436535e6c56e27cb144eed8719317f (patch) | |
tree | b15cbc2aba460682e329ffb13fa9bc4c059fcb6e /engines/titanic/moves | |
parent | 1c3ba9be1428b6344a2d7417aa9905cada6e6508 (diff) | |
download | scummvm-rg350-6eac69f45a436535e6c56e27cb144eed8719317f.tar.gz scummvm-rg350-6eac69f45a436535e6c56e27cb144eed8719317f.tar.bz2 scummvm-rg350-6eac69f45a436535e6c56e27cb144eed8719317f.zip |
TITANIC: Replaced int passenger class with PassengerClass enum
Diffstat (limited to 'engines/titanic/moves')
-rw-r--r-- | engines/titanic/moves/restricted_move.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/moves/restricted_move.cpp b/engines/titanic/moves/restricted_move.cpp index b1040a3554..aed204abdc 100644 --- a/engines/titanic/moves/restricted_move.cpp +++ b/engines/titanic/moves/restricted_move.cpp @@ -51,7 +51,7 @@ bool CRestrictedMove::MouseButtonDownMsg(CMouseButtonDownMsg *msg) { if (classNum <= _classNum) { // Okay to change to the given destination changeView(_destination); - } else if (classNum != 4) { + } else if (classNum != UNCHECKED) { petDisplayMessage(1, CLASS_NOT_ALLOWED_AT_DEST); } else if (compareRoomNameTo("EmbLobby")) { playSound("a#17.wav"); @@ -68,7 +68,7 @@ bool CRestrictedMove::EnterViewMsg(CEnterViewMsg *msg) { int classNum = getPassengerClass(); bool flag = classNum > _classNum; - if (classNum == 4) { + if (classNum == UNCHECKED) { if (compareRoomNameTo("EmbLobby")) flag = false; else if (compareViewNameTo("Titania.Node 1.S")) |