diff options
author | Vincent Hamm | 2002-03-21 00:40:18 +0000 |
---|---|---|
committer | Vincent Hamm | 2002-03-21 00:40:18 +0000 |
commit | 3858266b66e67723437c953a0619fd26af40e3a3 (patch) | |
tree | 9d6b5d5fc4a172897a7dec0886b280a578e03239 /insane.cpp | |
parent | d2d2ae7e7df7aee8fb08f2381a995d6250168869 (diff) | |
download | scummvm-rg350-3858266b66e67723437c953a0619fd26af40e3a3.tar.gz scummvm-rg350-3858266b66e67723437c953a0619fd26af40e3a3.tar.bz2 scummvm-rg350-3858266b66e67723437c953a0619fd26af40e3a3.zip |
Completly change the way the Scumm object is handled. Now the main execution loop is done INSIDE the Scumm object. Low level system access (like delays, cd tracks,...) are called using the _system object. Changed the insane main loop to use _system calls
svn-id: r3795
Diffstat (limited to 'insane.cpp')
-rw-r--r-- | insane.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/insane.cpp b/insane.cpp index 6b45036084..3a89efbb07 100644 --- a/insane.cpp +++ b/insane.cpp @@ -109,7 +109,7 @@ bool SmushPlayer::parseTag() { void SmushPlayer::parseAHDR() { -// memcpy(_fluPalette, _block, 0x300); + memcpy(_fluPalette, _block, 0x300); _paletteChanged = true; printf("parse AHDR\n"); @@ -591,7 +591,7 @@ void SmushPlayer::startVideo(short int arg, byte* videoFile) if(_in==NULL) return; - if (fileReadBE32() != 'ANIM') + if (fileReadBE32() != 'ANIM') error("file is not an anim"); fileSize=fileReadBE32(); @@ -612,8 +612,8 @@ void SmushPlayer::startVideo(short int arg, byte* videoFile) blitToScreen(sm,sm->_videoBuffer, 0, 0, 320 ,200); updateScreen(sm); - waitForTimer(sm,20); - + sm->delta = sm->_system->waitTick(sm->delta); + if(sm->_keyPressed == sm->_vars[sm->VAR_CUTSCENEEXIT_KEY]) return; } while (1); |