From e59ffbe6921ccea4d8039082d6d093568edfa08d Mon Sep 17 00:00:00 2001 From: rodri Date: Fri, 15 Sep 2023 23:06:58 +0000 Subject: don't send shots when the game is over. and freeze the cursor. --- bts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bts.c b/bts.c index 85b8459..8d37354 100644 --- a/bts.c +++ b/bts.c @@ -509,7 +509,7 @@ lmb(Mousectl *mc) else if(ptinrect(mc->xy, localboard.bbox)) b = &localboard; - if(b == nil) + if(b == nil || conclusion.s != nil) return; cell = toboard(b, mc->xy); @@ -639,7 +639,7 @@ mouse(Mousectl *mc) } } - if(game.state == Playing) + if(game.state == Playing && conclusion.s == nil) if(ptinrect(mc->xy, alienboard.bbox)) csetcursor(mctl, &aimcursor); else -- cgit v1.2.3