From 198f10bb25382882c4abd9081dac4dd74dbdbb9f Mon Sep 17 00:00:00 2001 From: qwx Date: Sat, 9 Jun 2018 07:12:43 +0200 Subject: [PATCH] snes: fix input botch 2 --- sys/src/games/snes/snes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/games/snes/snes.c b/sys/src/games/snes/snes.c index 769ecb473..7d37fcbc3 100644 --- a/sys/src/games/snes/snes.c +++ b/sys/src/games/snes/snes.c @@ -220,7 +220,7 @@ flush(void) extern Rectangle picr; extern Mousectl *mc; flushmouse(!mouse); - while(nbrecv(mc->c, &m) > 0){ + while(mouse && nbrecv(mc->c, &m) > 0){ if(ptinrect(m.xy, picr)){ p = subpt(m.xy, picr.min); p.x /= scale;