HOPKINS: Fix crash in Polish demo - Bug #3613954

This commit is contained in:
Strangerke 2013-05-28 08:21:59 +02:00
parent d11a1eea94
commit f055512f17

View File

@ -402,14 +402,27 @@ bool HopkinsEngine::runWin95Demo() {
break; break;
case 151: case 151:
_soundMan->playSound(28); if (_fileIO->fileExists("JOUR3A.ANM")) {
_globals->_eventMode = EVENTMODE_ALT; // CHECKME! // The Polish demo uses the animation file than the complete versions
_graphicsMan->clearScreen(); _soundMan->playSound(16);
_graphicsMan->clearPalette(); _globals->_eventMode = EVENTMODE_IGNORE;
_graphicsMan->loadImage("njour3a");
_graphicsMan->fadeInLong(); _graphicsMan->clearScreen();
_events->delay(5000); _graphicsMan->clearPalette();
_graphicsMan->fadeOutLong(); _graphicsMan->_fadingFl = true;
_animMan->playAnim("JOUR3A.ANM", "JOUR3A.ANM", 12, 12, 2000);
} else {
// The other demos only display a nag screen
_soundMan->playSound(28);
_globals->_eventMode = EVENTMODE_ALT; // CHECKME!
_graphicsMan->clearScreen();
_graphicsMan->clearPalette();
_graphicsMan->loadImage("njour3a");
_graphicsMan->fadeInLong();
_events->delay(5000);
_graphicsMan->fadeOutLong();
}
_globals->_exitId = 300; _globals->_exitId = 300;
_globals->_eventMode = EVENTMODE_DEFAULT; _globals->_eventMode = EVENTMODE_DEFAULT;
break; break;