Skip to content

Commit 7536862

Browse files
committed
fix source style
1 parent baa5cab commit 7536862

1 file changed

Lines changed: 9 additions & 15 deletions

File tree

bin/frozen-bubble

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)