diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-07-10 12:32:21 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-07-10 12:32:21 +0100 |
commit | acb17f540cd8bc3a1e50ae4ab22b97620b55673b (patch) | |
tree | a88c699b7e563dc3381986ceb38393e943f3aefe | |
parent | cfb7fb8f7021d15315b2c15a421c7f35757005d2 (diff) | |
download | gold-mine-run-acb17f540cd8bc3a1e50ae4ab22b97620b55673b.tar.gz gold-mine-run-acb17f540cd8bc3a1e50ae4ab22b97620b55673b.zip |
Don't allow interrupts to prevent flickering
-rw-r--r-- | src/game.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) { |