File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2913,22 +2913,16 @@ sub init_game() {
29132913 if ($mixer eq ' SOUND_DISABLED' ) {
29142914 $mixer_enabled = 0;
29152915 $mixer = undef ;
2916- } elsif (!defined ($mixer_enabled ) || $mixer_enabled ) {
2917-
2918- my $init_flags = SDL::Mixer::init( MIX_INIT_OGG );
2919-
2920- unless ($init_flags & MIX_INIT_OGG)
2921- {
2922- warn " OGG support needed to be compiled in SDL::Mixer SDL module. Disabling Sound." ;
2923- $mixer_enabled = 0;
2924- $mixer = undef ;
2925-
2926- }
2927- else
2928- {
2929- $mixer_enabled = init_sound();
2930- }
29312916
2917+ } elsif (!defined ($mixer_enabled ) || $mixer_enabled ) {
2918+ my $init_flags = SDL::Mixer::init(MIX_INIT_OGG);
2919+ if (!($init_flags & MIX_INIT_OGG)) {
2920+ warn " OGG support needed to be compiled in SDL::Mixer SDL module. Disabling sound." ;
2921+ $mixer_enabled = 0;
2922+ $mixer = undef ;
2923+ } else {
2924+ $mixer_enabled = init_sound();
2925+ }
29322926 }
29332927
29342928 # - the RGBA effects algorithms assume little endian RGBA surfaces
You can’t perform that action at this time.
0 commit comments