diff options
-rw-r--r-- | engines/kyra/kyra3.cpp | 2 | ||||
-rw-r--r-- | engines/kyra/sound_digital.cpp | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/engines/kyra/kyra3.cpp b/engines/kyra/kyra3.cpp index 040f3b4908..cadf35e4db 100644 --- a/engines/kyra/kyra3.cpp +++ b/engines/kyra/kyra3.cpp @@ -90,7 +90,7 @@ int KyraEngine_v3::go() { delayUntil(nextRun); } - for (int i = 64; i >= 29; --i) { + for (int i = 64; i > 29; --i) { uint32 nextRun = _system->getMillis() + 3 * _tickLength; logo->displayFrame(i); _screen->updateScreen(); diff --git a/engines/kyra/sound_digital.cpp b/engines/kyra/sound_digital.cpp index a41ca053ef..755bc710cd 100644 --- a/engines/kyra/sound_digital.cpp +++ b/engines/kyra/sound_digital.cpp @@ -133,7 +133,9 @@ int AUDStream::readChunk(int16 *buffer, const int maxSamples) { // if no bytes of the old chunk are left, read the next one if (_bytesLeft <= 0) { - if (_processedSize > _totalSize) { + if (_processedSize >= _totalSize) { + // TODO: Eventually, we're probably going to need the + // ability to loop the sound. Add this here? _endOfData = true; return 0; } |