summaryrefslogtreecommitdiff
path: root/sys/src/games
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-03-23 20:16:24 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2014-03-23 20:16:24 +0100
commit0df733f94b8bc11946b0af940d30f28ca67f02d8 (patch)
tree0a8ce26dcbb1edb2df857a1377275df41ff26e43 /sys/src/games
parente11835232448831f8bd4a27c4f8d8a7aa78383b5 (diff)
games/snes: fix dspclock signed overflow (music stoping for minute)
Diffstat (limited to 'sys/src/games')
-rw-r--r--sys/src/games/snes/snes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/games/snes/snes.c b/sys/src/games/snes/snes.c
index 0d7800b30..230622876 100644
--- a/sys/src/games/snes/snes.c
+++ b/sys/src/games/snes/snes.c
@@ -284,11 +284,11 @@ usage:
}
while(spcclock < 0)
spcclock += spcstep() * SPCDIV;
- if(stimerclock >= SPCDIV*16){
+ while(stimerclock >= SPCDIV*16){
spctimerstep();
stimerclock -= SPCDIV*16;
}
- if(dspclock >= SPCDIV){
+ while(dspclock >= SPCDIV){
dspstep();
dspclock -= SPCDIV;
}