diff options
author | rodri <rgl@antares-labs.eu> | 2023-06-05 20:23:26 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2023-06-05 20:23:26 +0000 |
commit | 9c20abc1ab976cab00040a32299896dc8ea71e6c (patch) | |
tree | 5037406ea18c55dc0be2001c1d27e2d89edc16f7 /musw.c | |
parent | 0625897dd0194986b02988eb5a9c2969e24adf0c (diff) | |
download | musw-9c20abc1ab976cab00040a32299896dc8ea71e6c.tar.gz musw-9c20abc1ab976cab00040a32299896dc8ea71e6c.tar.bz2 musw-9c20abc1ab976cab00040a32299896dc8ea71e6c.zip |
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.
Diffstat (limited to 'musw.c')
-rw-r--r-- | musw.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; } |