diff options
author | Chris Robinson <[email protected]> | 2014-01-12 16:27:21 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-01-12 16:27:21 -0800 |
commit | e252a100f7a2742d03253581514f43a45ca08315 (patch) | |
tree | abb1df66d1e51631f7c0469e9f90b1602d3baed7 | |
parent | a5bfc1e30b333d0767138d9a42033cabd2dd71c5 (diff) |
Minor non-functional cleanup
-rw-r--r-- | OpenAL32/alFontsound.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenAL32/alFontsound.c b/OpenAL32/alFontsound.c index 9c2f4bf9..4a195c21 100644 --- a/OpenAL32/alFontsound.c +++ b/OpenAL32/alFontsound.c @@ -819,8 +819,8 @@ static ALsfmodulator *ALfontsound_getModStage(ALfontsound *self, ALsizei stage) AL_NONE }; ret = malloc(sizeof(*ret)); - InsertUIntMapEntry(&self->ModulatorMap, stage, ret); *ret = moddef; + InsertUIntMapEntry(&self->ModulatorMap, stage, ret); } return ret; } @@ -853,8 +853,8 @@ void ALfontsound_setModStagei(ALfontsound *self, ALCcontext *context, ALsizei st srcidx++; /* fall-through */ case AL_SOURCE0_TYPE_SOFT: - if(!(value == AL_UNORM_SOFT || value == AL_SNORM_SOFT || - value == AL_UNORM_REV_SOFT || value == AL_SNORM_REV_SOFT)) + if(!(value == AL_UNORM_SOFT || value == AL_UNORM_REV_SOFT || + value == AL_SNORM_SOFT || value == AL_SNORM_REV_SOFT)) SET_ERROR_AND_RETURN(context, AL_INVALID_VALUE); ALfontsound_getModStage(self, stage)->Source[srcidx].Type = value; break; @@ -863,8 +863,8 @@ void ALfontsound_setModStagei(ALfontsound *self, ALCcontext *context, ALsizei st srcidx++; /* fall-through */ case AL_SOURCE0_FORM_SOFT: - if(!(value == AL_LINEAR_SOFT || value == AL_CONVEX_SOFT || - value == AL_CONCAVE_SOFT || value == AL_SWITCH_SOFT)) + if(!(value == AL_LINEAR_SOFT || value == AL_CONCAVE_SOFT || + value == AL_CONVEX_SOFT || value == AL_SWITCH_SOFT)) SET_ERROR_AND_RETURN(context, AL_INVALID_VALUE); ALfontsound_getModStage(self, stage)->Source[srcidx].Form = value; break; |