aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-07-04 07:21:37 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-07-04 07:21:37 +0100
commitc05d652dbd067ccac5f34455a4741cbbc02fd960 (patch)
treecc34689b6e82bcd8351724f805be3bb3374c4e0b
parente3077bf4c5c7f17397795b2c469db802a00245ff (diff)
downloadgold-mine-run-c05d652dbd067ccac5f34455a4741cbbc02fd960.tar.gz
gold-mine-run-c05d652dbd067ccac5f34455a4741cbbc02fd960.zip
Prevent MikMod_Update being called from the int
-rw-r--r--src/sound.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sound.c b/src/sound.c
index 5eac6fa..31383c8 100644
--- a/src/sound.c
+++ b/src/sound.c
@@ -1,4 +1,5 @@
#include <stdint.h>
+#include <dos.h>
#include "data.h"
@@ -137,5 +138,7 @@ void sound_play_queue()
while (queue_top > 0)
sound_play_efx(queue[--queue_top]);
+ disable();
MikMod_Update();
+ enable();
}