HOPKINS: Fix glitch occurring when skipping the flight cut scene.

Thanks Greencis for reporting it
This commit is contained in:
Strangerke 2013-06-18 23:52:43 +02:00
parent 233cbb13b8
commit 8c31fa9cba
2 changed files with 5 additions and 0 deletions

View File

@ -1158,6 +1158,7 @@ bool HopkinsEngine::runFull() {
break;
case 34:
// In the airport, before the flight cut-scene
_objectsMan->sceneControl("IM34", "IM34", "ANIM34", "IM34", 2, false);
break;
@ -1188,6 +1189,7 @@ bool HopkinsEngine::runFull() {
}
case 50:
// Flight cut scene
playPlaneCutscene();
_globals->_exitId = 51;
break;
@ -2234,6 +2236,8 @@ void HopkinsEngine::playPlaneCutscene() {
if (!_events->_escKeyFl) {
_graphicsMan->_fadingFl = true;
_animMan->playAnim("PARA00A.ANM", "PARA00.ANM", 9, 9, 9);
} else {
_graphicsMan->fadeOutShort();
}
_events->_escKeyFl = false;

View File

@ -1980,6 +1980,7 @@ int ScriptManager::handleOpcode(const byte *dataP) {
break;
case 216:
// Discuss with pilot just before Flight cutscene
_vm->_globals->_introSpeechOffFl = true;
_vm->_talkMan->startAnimatedCharacterDialogue("aviat1.pe2");
_vm->_globals->_introSpeechOffFl = false;