From 118df45d3740cc6a391e181e60aeaef7571c5e0b Mon Sep 17 00:00:00 2001 From: rodri Date: Sun, 10 Sep 2023 18:56:15 +0000 Subject: fixed game-breaking typo. --- btsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/btsd.c b/btsd.c index 9fa80a3..1177c0c 100644 --- a/btsd.c +++ b/btsd.c @@ -177,7 +177,7 @@ battleproc(void *arg) settile(op, cell, Thit); write(p->fd, "hit\n", 4); fprint(op->fd, "hit %s\n", cell2coords(cell)); - if(countshipcells(op) < 17){ + if((debug && countshipcells(op) < 17) || (!debug && countshipcells(op) < 1)){ write(p->fd, "win\n", 4); write(op->fd, "lose\n", 5); sendp(playerq, p); -- cgit v1.2.3