diff options
author | Filippos Karapetis | 2015-11-07 18:17:45 +0200 |
---|---|---|
committer | Filippos Karapetis | 2015-11-07 18:17:45 +0200 |
commit | f6e38119ec8a8d9d7f1c28185fe68ff16692b07d (patch) | |
tree | 08f7c77acab1e9bf56f6699b34ed23b75e71d244 /engines/mads/player.cpp | |
parent | 1b75381b988f5fe70989db8fd5420f535e337c28 (diff) | |
download | scummvm-rg350-f6e38119ec8a8d9d7f1c28185fe68ff16692b07d.tar.gz scummvm-rg350-f6e38119ec8a8d9d7f1c28185fe68ff16692b07d.tar.bz2 scummvm-rg350-f6e38119ec8a8d9d7f1c28185fe68ff16692b07d.zip |
MADS: Phantom: More work on V2 scene data
Diffstat (limited to 'engines/mads/player.cpp')
-rw-r--r-- | engines/mads/player.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mads/player.cpp b/engines/mads/player.cpp index 292f53815a..09a961825e 100644 --- a/engines/mads/player.cpp +++ b/engines/mads/player.cpp @@ -304,7 +304,7 @@ void Player::update() { int newDepth = 1; int yp = MIN(_playerPos.y, (int16)(MADS_SCENE_HEIGHT - 1)); - for (int idx = 1; idx < 15; ++idx) { + for (int idx = 1; idx < DEPTH_BANDS_SIZE; ++idx) { if (scene._sceneInfo->_depthList[newDepth] >= yp) newDepth = idx + 1; } |