diff options
author | Paul Gilbert | 2014-04-05 23:24:38 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-04-05 23:24:38 -0400 |
commit | 962d41e8ca6c0495209ffc1832c59606428d3a35 (patch) | |
tree | 419b9d83f0938f2c7b6e4ebeed3ab92dde356d06 /engines/mads | |
parent | ff7d2e2dbf60202cc24b26b1ac61c0e76e802191 (diff) | |
download | scummvm-rg350-962d41e8ca6c0495209ffc1832c59606428d3a35.tar.gz scummvm-rg350-962d41e8ca6c0495209ffc1832c59606428d3a35.tar.bz2 scummvm-rg350-962d41e8ca6c0495209ffc1832c59606428d3a35.zip |
MADS: Fix calculating player depth in the scene
Diffstat (limited to 'engines/mads')
-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 3eb6b118d7..b337f8ada0 100644 --- a/engines/mads/player.cpp +++ b/engines/mads/player.cpp @@ -263,7 +263,7 @@ void Player::update() { scene._spriteSlots[slotIndex]._flags = IMG_ERASE; int newDepth = 1; - int yp = MAX(_playerPos.y, (int16)(MADS_SCENE_HEIGHT - 1)); + int yp = MIN(_playerPos.y, (int16)(MADS_SCENE_HEIGHT - 1)); for (int idx = 1; idx < 15; ++idx) { if (scene._sceneInfo->_depthList[newDepth] >= yp) |