[Scummvm-cvs-logs] scummvm master -> c7ca276e101914066e972920229538747fa77298
dreammaster
dreammaster at scummvm.org
Thu Oct 17 14:46:47 CEST 2013
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
c7ca276e10 TSAGE: Fix error in calculating voice file offsets
Commit: c7ca276e101914066e972920229538747fa77298
https://github.com/scummvm/scummvm/commit/c7ca276e101914066e972920229538747fa77298
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2013-10-17T05:46:15-07:00
Commit Message:
TSAGE: Fix error in calculating voice file offsets
Changed paths:
engines/tsage/sound.cpp
diff --git a/engines/tsage/sound.cpp b/engines/tsage/sound.cpp
index f985650..02abc58 100644
--- a/engines/tsage/sound.cpp
+++ b/engines/tsage/sound.cpp
@@ -2654,14 +2654,14 @@ uint32 PlayStream::getFileOffset(const uint16 *data, int count, int voiceNum) {
if (!v)
return 0;
- // Loop to figure out offsets from indexes skipped over
+ // Loop to figure out offsets from index words skipped over
for (int i = 0; i < (voiceNum >> 3); ++i) {
for (int bit = 0; bit < 16; bit += 2)
offset += ((data[i] >> bit) & 3) * count;
}
// Bit index loop
- for (int i = 0; i < bitsIndex; --i)
+ for (int i = 0; i < bitsIndex; ++i)
offset += ((data[byteIndex] >> (i * 2)) & 3) * count;
return offset;
More information about the Scummvm-git-logs
mailing list