From fce250372fdd6e9890a333f70d6236b32a1df898 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 18 Sep 2017 22:14:40 -0400 Subject: TITANIC: Fix floor calculation in CChevCode::getChevFloorNum --- engines/titanic/game/chev_code.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') 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; } -- cgit v1.2.3