From f6e38119ec8a8d9d7f1c28185fe68ff16692b07d Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sat, 7 Nov 2015 18:17:45 +0200 Subject: MADS: Phantom: More work on V2 scene data --- engines/mads/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/mads/player.cpp') 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; } -- cgit v1.2.3