* Fix some errors in openal_track.c; part of patch #884 by Buginator

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3052 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2007-12-14 12:13:23 +00:00
parent 456208fcc3
commit d179c09f17
1 changed files with 3 additions and 3 deletions

View File

@ -215,7 +215,7 @@ void sound_Update( void )
// If one did, the state returned is useless. So instead of
// using it continue with the next sample.
err = sound_GetError();
if (err == AL_NO_ERROR)
if (err != AL_NO_ERROR)
{
// Move to the next object
previous = node;
@ -287,13 +287,13 @@ void sound_Update( void )
BOOL sound_QueueSamplePlaying( void )
{
#ifndef WZ_NOSOUND
ALenum state;
if ( current_queue_sample == (ALuint)AL_INVALID )
{
return FALSE;
}
ALenum state;
alGetSourcei(current_queue_sample, AL_SOURCE_STATE, &state);
// Check whether an error occurred while retrieving the state.