aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-03-23 17:44:26 -0700
committerChris Robinson <[email protected]>2014-03-23 17:44:26 -0700
commitcbb82647fbddc9884a2e2b0230471bb629baa887 (patch)
tree9250c361dd1bcec17fb6e29c1344ba96d3f753a6 /Alc/mixer.c
parente2cb41dc61c2cebbd231beac5b6797e245ca619f (diff)
Remove an unnecessary conditional
Diffstat (limited to 'Alc/mixer.c')
-rw-r--r--Alc/mixer.c8
1 files changed, 1 insertions, 7 deletions
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;
}