ref: e59ffbe6921ccea4d8039082d6d093568edfa08d
parent: 48fe28aa56b83af341957b472c023a667639776c
author: rodri <rgl@antares-labs.eu>
date: Fri Sep 15 19:06:58 EDT 2023
don't send shots when the game is over. and freeze the cursor.
--- a/bts.c
+++ b/bts.c
@@ -509,7 +509,7 @@
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 @@
}
}
- if(game.state == Playing)
+ if(game.state == Playing && conclusion.s == nil)
if(ptinrect(mc->xy, alienboard.bbox))
csetcursor(mctl, &aimcursor);
else