From 344e764a193a70807d429e54c36f4cf5a5d0e8c7 Mon Sep 17 00:00:00 2001 From: rodri Date: Thu, 31 Aug 2023 20:36:18 +0000 Subject: correct patrolcursor not showing up after finishing a battle. --- bts.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bts.c b/bts.c index 9b2b84f..4706c23 100644 --- a/bts.c +++ b/bts.c @@ -171,7 +171,6 @@ resetgame(void) armada[i].sunk = 0; } curship = nil; - game.state = Waiting0; layoutdone = 0; } @@ -713,10 +712,13 @@ processcmd(char *cmd) if(debug) fprint(2, "rcvd '%s'\n", cmd); - if(strcmp(cmd, "win") == 0) + if(strcmp(cmd, "win") == 0){ celebrate(); - else if(strcmp(cmd, "lose") == 0) + game.state = Waiting0; + }else if(strcmp(cmd, "lose") == 0){ keelhaul(); + game.state = Waiting0; + } switch(game.state){ case Waiting0: -- cgit v1.2.3