ref: 344e764a193a70807d429e54c36f4cf5a5d0e8c7
parent: 39d20fdc8507e927900358d37392efcbb50f874d
author: rodri <rgl@antares-labs.eu>
date: Thu Aug 31 16:36:18 EDT 2023
correct patrolcursor not showing up after finishing a battle.
--- a/bts.c
+++ b/bts.c
@@ -171,7 +171,6 @@
armada[i].sunk = 0;
}
curship = nil;
- game.state = Waiting0;
layoutdone = 0;
}
@@ -713,10 +712,13 @@
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: