diff options
author | Joost Peters | 2003-04-29 20:42:47 +0000 |
---|---|---|
committer | Joost Peters | 2003-04-29 20:42:47 +0000 |
commit | 27bacb86cc7a0d7fcbb6eec606c249a263a7650d (patch) | |
tree | 3e21da9ff14113e748fcff2f67d9c33dc51c5ab7 /sky/cd_intro.cpp | |
parent | 849178c46296791cf58bbfe6e4751a1624bd5059 (diff) | |
download | scummvm-rg350-27bacb86cc7a0d7fcbb6eec606c249a263a7650d.tar.gz scummvm-rg350-27bacb86cc7a0d7fcbb6eec606c249a263a7650d.tar.bz2 scummvm-rg350-27bacb86cc7a0d7fcbb6eec606c249a263a7650d.zip |
added hack-ish intro ESCape key code
svn-id: r7205
Diffstat (limited to 'sky/cd_intro.cpp')
-rw-r--r-- | sky/cd_intro.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sky/cd_intro.cpp b/sky/cd_intro.cpp index 7f94afb936..03e690c7bc 100644 --- a/sky/cd_intro.cpp +++ b/sky/cd_intro.cpp @@ -194,8 +194,9 @@ #define START_BG ( _skySound->playBgSound(bgVocBuffer, bgVocSize) ) #define LOAD_NEW_VOICE(num) ( free (vocBuffer), vocBuffer = _skyDisk->loadFile(num, NULL), loadedVocSize = _skyDisk->_lastLoadedFileSize ) #define LOAD_NEW_BG(num) ( free (bgVocBuffer), bgVocBuffer = _skyDisk->loadFile(num, NULL), bgVocSize = _skyDisk->_lastLoadedFileSize ) -#define WAIT_VOICE while (_skySound->_voiceHandle != 0) { delay(50); } -#define WAIT_SEQUENCE while (_tseqFrames != 0) { delay(50); } +#define WAIT_VOICE while (_skySound->_voiceHandle != 0) { delay(50); CHECK_ESC } +#define WAIT_SEQUENCE while (_tseqFrames != 0) { delay(50); CHECK_ESC } +#define CHECK_ESC if (_key_pressed == 27) { _tseqFrames = 0; return; } #define WAIT_RELATIVE(x) ( delay(20 * (x)) ) #define COPY_SCREEN ( memcpy(_workScreen, workScreen2, GAME_SCREEN_WIDTH * GAME_SCREEN_HEIGHT) ) |