Add support for skipping swampy introduction

svn-id: r24041
This commit is contained in:
Travis Howell 2006-09-30 13:02:31 +00:00
parent 23c1ba8cd6
commit 119ee3fb8b
3 changed files with 12 additions and 4 deletions

View File

@ -262,6 +262,7 @@ AGOSEngine::AGOSEngine(OSystem *syst)
_unkPalFlag = 0;
_exitCutscene = 0;
_paletteFlag = 0;
_picture8600 = 0;
_soundFileId = 0;
_lastMusicPlayed = 0;

View File

@ -362,7 +362,7 @@ protected:
uint16 _noOverWrite;
bool _rejectBlock;
bool _exitCutscene;
bool _exitCutscene, _picture8600;
uint _soundFileId;
int16 _lastMusicPlayed;

View File

@ -1172,6 +1172,8 @@ void AGOSEngine::o_picture() {
uint vga_res = getVarOrWord();
uint mode = getVarOrByte();
_picture8600 = (vga_res == 8600);
if (mode == 4)
vc29_stopAllSounds();
@ -2776,9 +2778,14 @@ void AGOSEngine::waitForMark(uint i) {
_exitCutscene = false;
while (!(_marks & (1 << i))) {
if (_exitCutscene) {
if (getBitFlag(9)) {
endCutscene();
break;
if (getGameType() == GType_PP) {
if (_picture8600)
break;
} else {
if (getBitFlag(9)) {
endCutscene();
break;
}
}
} else {
processSpecialKeys();