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/camera_auto_mover.h | |
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/camera_auto_mover.h')
-rw-r--r-- | engines/titanic/star_control/camera_auto_mover.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/titanic/star_control/camera_auto_mover.h b/engines/titanic/star_control/camera_auto_mover.h index 7b2e44fe13..210bd74091 100644 --- a/engines/titanic/star_control/camera_auto_mover.h +++ b/engines/titanic/star_control/camera_auto_mover.h @@ -31,6 +31,7 @@ namespace Titanic { class CErrorCode; class FMatrix; +const int nMoverTransitions = 32; // The number of vector transitions when doing a mover change is fixed /** * Base class for automatic movement of the starview camera @@ -49,7 +50,7 @@ protected: int _field44; int _field48; int _field4C; - double _speeds[32]; + double _speeds[nMoverTransitions]; int _field54; double _transitionPercent; double _transitionPercentInc; |