aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bts.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/bts.c b/bts.c
index 0b9911e..6d7a22e 100644
--- a/bts.c
+++ b/bts.c
@@ -664,6 +664,12 @@ mouse(Mousectl *mc)
void
key(Rune r)
{
+ if(conclusion.s != nil){
+ resetgame();
+ nbsend(drawchan, nil);
+ return;
+ }
+
switch(r){
case Kdel:
case 'q':
@@ -677,11 +683,7 @@ key(Rune r)
if(game.state != Waiting0)
break;
chanprint(egress, "watch\n");
- default:
- if(conclusion.s != nil){
- resetgame();
- nbsend(drawchan, nil);
- }
+ break;
}
}