aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic
diff options
context:
space:
mode:
authorPaul Gilbert2017-09-18 22:14:40 -0400
committerPaul Gilbert2017-09-18 22:14:40 -0400
commitfce250372fdd6e9890a333f70d6236b32a1df898 (patch)
tree7b7e9afe574c7dd438a94e4c0cd74e774f313d1a /engines/titanic
parent99678faf16796c277ecefea020100970627fde5c (diff)
downloadscummvm-rg350-fce250372fdd6e9890a333f70d6236b32a1df898.tar.gz
scummvm-rg350-fce250372fdd6e9890a333f70d6236b32a1df898.tar.bz2
scummvm-rg350-fce250372fdd6e9890a333f70d6236b32a1df898.zip
TITANIC: Fix floor calculation in CChevCode::getChevFloorNum
Diffstat (limited to 'engines/titanic')
-rw-r--r--engines/titanic/game/chev_code.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/titanic/game/chev_code.cpp b/engines/titanic/game/chev_code.cpp
index 119d82efc0..6c27b1fd83 100644
--- a/engines/titanic/game/chev_code.cpp
+++ b/engines/titanic/game/chev_code.cpp
@@ -132,7 +132,7 @@ bool CChevCode::GetChevFloorNum(CGetChevFloorNum *msg) {
break;
}
- msg->_floorNum = (val1 >= 10) ? 0 : val1 * 10;
+ msg->_floorNum = (val1 >= 10) ? 0 : val2 * 10 + val1;
return true;
}