diff options
author | rodri <rgl@antares-labs.eu> | 2023-08-31 20:36:18 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2023-08-31 20:36:18 +0000 |
commit | 344e764a193a70807d429e54c36f4cf5a5d0e8c7 (patch) | |
tree | d4701eb0808f5f0b4d73137d1160568074209fab | |
parent | 39d20fdc8507e927900358d37392efcbb50f874d (diff) | |
download | battleship-344e764a193a70807d429e54c36f4cf5a5d0e8c7.tar.gz battleship-344e764a193a70807d429e54c36f4cf5a5d0e8c7.tar.bz2 battleship-344e764a193a70807d429e54c36f4cf5a5d0e8c7.zip |
correct patrolcursor not showing up after finishing a battle.
-rw-r--r-- | bts.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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: |