Fix for Issue #152 for Unmatch Bitstream

This corrects for changes made in Pull Request #112.
This commit is contained in:
DavidWyand-GG 2012-11-23 13:00:12 -05:00
parent 7368dc2489
commit a2466bfd3a
2 changed files with 5 additions and 5 deletions

View file

@ -352,9 +352,9 @@ void Sim3DAudioEvent::unpack(NetConnection *con, BitStream *bstream)
if (bstream->readFlag()) {
QuatF q;
q.x = bstream->readFloat(SoundRotBits);
q.y = bstream->readFloat(SoundRotBits);
q.z = bstream->readFloat(SoundRotBits);
q.x = bstream->readSignedFloat(SoundRotBits);
q.y = bstream->readSignedFloat(SoundRotBits);
q.z = bstream->readSignedFloat(SoundRotBits);
F32 value = ((q.x * q.x) + (q.y * q.y) + (q.z * q.z));
// #ifdef __linux
// Hmm, this should never happen, but it does...

View file

@ -576,8 +576,8 @@ void SFXDescription::unpackData( BitStream *stream )
Parent::unpackData( stream );
mVolume = stream->readFloat( 6 );
mPitch = stream->readFloat( 6 );
mPriority = stream->readFloat( 6 );
stream->read( &mPitch );
stream->read( &mPriority );
mIsLooping = stream->readFlag();
mFadeLoops = stream->readFlag();