aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlukaslw2014-06-02 22:59:13 +0200
committerlukaslw2014-06-22 20:08:39 +0200
commit854de5845bdcc44b00edeb74c1fd9e8bb1db089d (patch)
tree80b42745ed6e2667a3ee5fb974cd881d60235aec
parent2739a8639a2a9a50d36e8033896d6a760cc1d5d8 (diff)
downloadscummvm-rg350-854de5845bdcc44b00edeb74c1fd9e8bb1db089d.tar.gz
scummvm-rg350-854de5845bdcc44b00edeb74c1fd9e8bb1db089d.tar.bz2
scummvm-rg350-854de5845bdcc44b00edeb74c1fd9e8bb1db089d.zip
PRINCE: Hero Z coordinate fix
-rw-r--r--engines/prince/hero.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/prince/hero.cpp b/engines/prince/hero.cpp
index 22ddf645d8..3293c9c697 100644
--- a/engines/prince/hero.cpp
+++ b/engines/prince/hero.cpp
@@ -205,7 +205,6 @@ void Hero::countDrawPosition() {
//notfullSize
_drawX = _middleX - _scaledFrameXSize / 2;
_drawY = tempMiddleY + 1 - _scaledFrameYSize;
- _drawZ = _drawY - 1;
_vm->checkMasks(_drawX, _drawY - 1, _scaledFrameXSize, _scaledFrameYSize, _middleY);
} else {
//fullSize
@@ -213,6 +212,8 @@ void Hero::countDrawPosition() {
_drawY = tempMiddleY + 1 - _frameYSize;
_vm->checkMasks(_drawX, _drawY - 1, _frameXSize, _frameYSize, _middleY);
}
+
+ _drawZ = tempMiddleY;
}
void Hero::plotPoint(int x, int y) {