Browse Source

properly restore rom bank in all music isr cases

Thomas B 2 weeks ago
parent
commit
2a1cf3f67a
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/sound.c

+ 3
- 3
src/sound.c View File

172
                     if (music->repeat != MUSIC_NO_REPEAT) {
172
                     if (music->repeat != MUSIC_NO_REPEAT) {
173
                         off = music->repeat;
173
                         off = music->repeat;
174
                         snd_play();
174
                         snd_play();
175
-                        return;
175
+                        goto end;
176
                     } else {
176
                     } else {
177
                         music = NULL;
177
                         music = NULL;
178
                         goto end;
178
                         goto end;
187
                     if (music->repeat != MUSIC_NO_REPEAT) {
187
                     if (music->repeat != MUSIC_NO_REPEAT) {
188
                         off = music->repeat;
188
                         off = music->repeat;
189
                         snd_play();
189
                         snd_play();
190
-                        return;
190
+                        goto end;
191
                     } else {
191
                     } else {
192
                         music = NULL;
192
                         music = NULL;
193
                         goto end;
193
                         goto end;
202
                     if (music->repeat != MUSIC_NO_REPEAT) {
202
                     if (music->repeat != MUSIC_NO_REPEAT) {
203
                         off = music->repeat;
203
                         off = music->repeat;
204
                         snd_play();
204
                         snd_play();
205
-                        return;
205
+                        goto end;
206
                     } else {
206
                     } else {
207
                         music = NULL;
207
                         music = NULL;
208
                         goto end;
208
                         goto end;

Loading…
Cancel
Save