aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-07-10 12:32:21 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-07-10 12:32:21 +0100
commitacb17f540cd8bc3a1e50ae4ab22b97620b55673b (patch)
treea88c699b7e563dc3381986ceb38393e943f3aefe
parentcfb7fb8f7021d15315b2c15a421c7f35757005d2 (diff)
downloadgold-mine-run-acb17f540cd8bc3a1e50ae4ab22b97620b55673b.tar.gz
gold-mine-run-acb17f540cd8bc3a1e50ae4ab22b97620b55673b.zip
Don't allow interrupts to prevent flickering
-rw-r--r--src/game.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
index 67f7739..1e376a6 100644
--- a/src/game.c
+++ b/src/game.c
@@ -1,5 +1,6 @@
#include <stdint.h>
#include <stdio.h>
+#include <dos.h>
#include "keyb.h"
#include "vga.h"
@@ -272,9 +273,13 @@ next_stage:
wait_vsync();
+ /* prevent interrupts so updating the audio doesn't result in sprite
+ * flickering on the less powered machines */
+ disable();
player_erase();
entities_draw();
player_draw();
+ enable();
if (gameover)
{