Skip to content

Commit

Permalink
HOPKINS: Fix glitch occurring when skipping the flight cut scene.
Browse files Browse the repository at this point in the history
Thanks Greencis for reporting it
  • Loading branch information
Strangerke committed Jun 18, 2013
1 parent 233cbb1 commit 8c31fa9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions engines/hopkins/hopkins.cpp
Expand Up @@ -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;

Expand Down Expand Up @@ -1188,6 +1189,7 @@ bool HopkinsEngine::runFull() {
}

case 50:
// Flight cut scene
playPlaneCutscene();
_globals->_exitId = 51;
break;
Expand Down Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions engines/hopkins/script.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 8c31fa9

Please sign in to comment.