diff options
author | lukaslw | 2014-07-31 05:29:03 +0200 |
---|---|---|
committer | lukaslw | 2014-07-31 05:29:03 +0200 |
commit | 60881987d058ad92366aa7fc0767f9f55d33fca4 (patch) | |
tree | e90c112c03cb9c4a5c9d8289e2bdecc740055e3a /engines/prince/hero.cpp | |
parent | 08dd3f6d3724bd353f8fd9df2c0510a8600ff011 (diff) | |
download | scummvm-rg350-60881987d058ad92366aa7fc0767f9f55d33fca4.tar.gz scummvm-rg350-60881987d058ad92366aa7fc0767f9f55d33fca4.tar.bz2 scummvm-rg350-60881987d058ad92366aa7fc0767f9f55d33fca4.zip |
PRINCE: Animations - update
Diffstat (limited to 'engines/prince/hero.cpp')
-rw-r--r-- | engines/prince/hero.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/prince/hero.cpp b/engines/prince/hero.cpp index 3b5403532c..bb6d07e524 100644 --- a/engines/prince/hero.cpp +++ b/engines/prince/hero.cpp @@ -191,12 +191,16 @@ void Hero::countDrawPosition() { // any chance? if (baseX == 320) { tempMiddleY = _middleY - (baseY - 240); + if (baseY != 240) { + error("Hero::countDrawPosition() - tempMiddleY"); + } } else { tempMiddleY = _middleY; } int phaseFrameIndex = heroAnim->getPhaseFrameIndex(_phase); - _frameXSize = heroAnim->getFrameWidth(phaseFrameIndex); - _frameYSize = heroAnim->getFrameHeight(phaseFrameIndex); + Graphics::Surface *heroSurface = heroAnim->getFrame(phaseFrameIndex); + _frameXSize = heroSurface->w; + _frameYSize = heroSurface->h; _scaledFrameXSize = getScaledValue(_frameXSize); _scaledFrameYSize = getScaledValue(_frameYSize); |