From c06055e1a4433792ed517d8ae3034e113424b85a Mon Sep 17 00:00:00 2001 From: David Fioramonti Date: Mon, 21 Aug 2017 16:55:21 -0700 Subject: TITANIC: Made variable for magic number used in auto camera mover This variable controls the number of transitions the game goes through when the mover is changing position. This reduces several 31/32s from the code. --- engines/titanic/star_control/marked_auto_mover.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/titanic/star_control/marked_auto_mover.cpp') diff --git a/engines/titanic/star_control/marked_auto_mover.cpp b/engines/titanic/star_control/marked_auto_mover.cpp index 22eb695427..0a1a7e4d49 100644 --- a/engines/titanic/star_control/marked_auto_mover.cpp +++ b/engines/titanic/star_control/marked_auto_mover.cpp @@ -74,7 +74,7 @@ int CMarkedAutoMover::proc5(CErrorCode &errorCode, FVector &pos, FMatrix &orient errorCode.set(); return 1; } else if (_field48 >= 0) { - double speedVal = _speeds[31 - _field48]; + double speedVal = _speeds[nMoverTransitions - 1 - _field48]; pos += _posDelta * speedVal; getVectorOnPath(pos); -- cgit v1.2.3