From cbb82647fbddc9884a2e2b0230471bb629baa887 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 23 Mar 2014 17:44:26 -0700 Subject: Remove an unnecessary conditional --- Alc/mixer.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'Alc') diff --git a/Alc/mixer.c b/Alc/mixer.c index 311d0abd..6947e6e4 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -408,11 +408,5 @@ ALvoid MixSource(ALactivesource *src, ALCdevice *Device, ALuint SamplesToDo) Source->position = DataPosInt; Source->position_fraction = DataPosFrac; src->Direct.Offset += OutPos; - if(State == AL_PLAYING) - src->Direct.Counter = maxu(src->Direct.Counter, OutPos) - OutPos; - else - { - src->Direct.Counter = 0; - src->Direct.Moving = AL_FALSE; - } + src->Direct.Counter = maxu(src->Direct.Counter, OutPos) - OutPos; } -- cgit v1.2.3