diff options
author | Paul Gilbert | 2012-11-18 15:21:16 +1100 |
---|---|---|
committer | Paul Gilbert | 2012-11-18 15:21:16 +1100 |
commit | 9a996d66d443292f0485ea062a72b62a45cec43e (patch) | |
tree | 7f84d045d33e10e5c1cd00127af693e2cfbde97d | |
parent | 08dcceeefcc6b79c1b6c96f0f25744512565bdaf (diff) | |
download | scummvm-rg350-9a996d66d443292f0485ea062a72b62a45cec43e.tar.gz scummvm-rg350-9a996d66d443292f0485ea062a72b62a45cec43e.tar.bz2 scummvm-rg350-9a996d66d443292f0485ea062a72b62a45cec43e.zip |
HOPKINS: Bugfix for crash when walking in the projection room
-rw-r--r-- | engines/hopkins/graphics.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/hopkins/graphics.cpp b/engines/hopkins/graphics.cpp index 4f0450453b..f2d23c7602 100644 --- a/engines/hopkins/graphics.cpp +++ b/engines/hopkins/graphics.cpp @@ -1805,7 +1805,7 @@ int GraphicsManager::Asm_Reduc(int v, int percentage) { return v; } - + // Display 'Perfect?' void GraphicsManager::Affiche_Perfect(byte *surface, const byte *srcData, int xp300, int yp300, int frameIndex, int zoom1, int zoom2, int modeFlag) { const byte *spriteStartP; @@ -1821,7 +1821,6 @@ void GraphicsManager::Affiche_Perfect(byte *surface, const byte *srcData, int xp int clippedWidth; int xCtr2; int v20; - int v21 = 0; int v22; int v23; int v24; @@ -1901,7 +1900,7 @@ void GraphicsManager::Affiche_Perfect(byte *surface, const byte *srcData, int xp Agr_Flag_x = 0; Largeur = spriteWidth; v20 = Asm_Zoom(spriteWidth, zoom2); - v22 = Asm_Zoom(v21, zoom2); + v22 = Asm_Zoom(spriteHeight1, zoom2); if (modeFlag) { v29 = v20 + dest1P; if (clip_y) { @@ -2017,6 +2016,7 @@ R_Aff_Zoom_Larg_Cont1: } if (v20 > (uint16)clip_x1) v20 = (uint16)clip_x1; + do { while (1) { v60 = v22; |