diff options
author | Chris Robinson <[email protected]> | 2023-12-26 00:02:23 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-12-26 02:21:35 -0800 |
commit | 1fddc044ac765d00e64628e59edcbcd71f0046b1 (patch) | |
tree | 9e6734e0527bd418a4775c7d41c3b6a25ca4eb41 /examples/almultireverb.c | |
parent | 095d1964feacaa4ec253db028fb1e8c04f718511 (diff) |
Clean up some gotos and non-optimal casts
Diffstat (limited to 'examples/almultireverb.c')
-rw-r--r-- | examples/almultireverb.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/almultireverb.c b/examples/almultireverb.c index d1deae5a..f9a46c4f 100644 --- a/examples/almultireverb.c +++ b/examples/almultireverb.c @@ -108,7 +108,8 @@ static int LoadEffect(ALuint effect, const EFXEAXREVERBPROPERTIES *reverb) * the needed panning vectors). */ alEffecti(effect, AL_EFFECT_TYPE, AL_EFFECT_EAXREVERB); - if((err=alGetError()) != AL_NO_ERROR) + err = alGetError(); + if(err != AL_NO_ERROR) { fprintf(stderr, "Failed to set EAX Reverb: %s (0x%04x)\n", alGetString(err), err); return 0; @@ -140,7 +141,8 @@ static int LoadEffect(ALuint effect, const EFXEAXREVERBPROPERTIES *reverb) alEffecti(effect, AL_EAXREVERB_DECAY_HFLIMIT, reverb->iDecayHFLimit); /* Check if an error occurred, and return failure if so. */ - if((err=alGetError()) != AL_NO_ERROR) + err = alGetError(); + if(err != AL_NO_ERROR) { fprintf(stderr, "Error setting up reverb: %s\n", alGetString(err)); return 0; |