diff options
author | David Fioramonti | 2017-08-21 16:55:21 -0700 |
---|---|---|
committer | David Fioramonti | 2017-08-21 16:55:25 -0700 |
commit | c06055e1a4433792ed517d8ae3034e113424b85a (patch) | |
tree | b221a408ad600226e51b53422f346a9fdb8f1bd2 /engines/titanic/star_control/marked_auto_mover.cpp | |
parent | 09a7a139f41a94162e00aa32fa4e37e0ce412d6c (diff) | |
download | scummvm-rg350-c06055e1a4433792ed517d8ae3034e113424b85a.tar.gz scummvm-rg350-c06055e1a4433792ed517d8ae3034e113424b85a.tar.bz2 scummvm-rg350-c06055e1a4433792ed517d8ae3034e113424b85a.zip |
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.
Diffstat (limited to 'engines/titanic/star_control/marked_auto_mover.cpp')
-rw-r--r-- | engines/titanic/star_control/marked_auto_mover.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |