From 9c20abc1ab976cab00040a32299896dc8ea71e6c Mon Sep 17 00:00:00 2001 From: rodri Date: Mon, 5 Jun 2023 20:23:26 +0000 Subject: put the player routines in their own unit. fixed an issue with the threadsim routine that would cause re-stepping of all the previous parties after dissolving one of them due to one of the players quitting. --- musw.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'musw.c') diff --git a/musw.c b/musw.c index fd04db3..fd8c8ac 100644 --- a/musw.c +++ b/musw.c @@ -657,14 +657,16 @@ State *intro_δ(State *s, void *arg) State *connecting_δ(State *s, void*) { - if(netconn.state != NCSConnecting) + if(netconn.state == NCSConnected) return &gamestates[GSMatching]; return s; } State *matching_δ(State *s, void*) { - if(netconn.state == NCSConnected && weplaying) + if(netconn.state != NCSConnected) + return &gamestates[GSConnecting]; + if(weplaying) return &gamestates[GSPlaying]; return s; } -- cgit v1.2.3