Skip to content

Commit

Permalink
HOPKINS: Fix corrupted frame at end of bank attack animation
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Mar 17, 2013
1 parent 9f81c4e commit 3d50c11
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion engines/hopkins/hopkins.cpp
Expand Up @@ -834,6 +834,7 @@ bool HopkinsEngine::runFull() {

case 3:
if (!_globals._saveData->_data[svBankAttackAnimPlayedFl]) {
// Play the bank attack animation
_soundManager.playSound(3);
if (getPlatform() == Common::kPlatformOS2 || getPlatform() == Common::kPlatformBeOS)
_graphicsManager.loadImage("fond");
Expand Down Expand Up @@ -865,13 +866,20 @@ bool HopkinsEngine::runFull() {
} else {
_animationManager.playAnim("BANQUE.ANM", 200, 28, 200);
}

_soundManager._specialSoundNum = 0;
_soundManager.removeSample(1);
_soundManager.removeSample(2);
_soundManager.removeSample(3);
_soundManager.removeSample(4);
if (getPlatform() != Common::kPlatformLinux)

if (getPlatform() != Common::kPlatformLinux) {
// Copy the end of the animation into the secondary buffer and fade out the screen
Common::fill(_graphicsManager._vesaBuffer, _graphicsManager._vesaBuffer +
SCREEN_WIDTH * 2 * SCREEN_HEIGHT, 0);
_graphicsManager.fadeOutLong();
}

_globals._saveData->_data[svBankAttackAnimPlayedFl] = 1;
}
_linesManager.setMaxLineIdx(5);
Expand Down

0 comments on commit 3d50c11

Please sign in to comment.