aboutsummaryrefslogtreecommitdiff
path: root/muswd.c
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2023-01-31 23:46:58 +0000
committerrodri <rgl@antares-labs.eu>2023-01-31 23:46:58 +0000
commit06f817044e7b2ec0bf63ed37a1cadd9f3818a787 (patch)
treee3f677987e50eaffddfd7c29745ceb090d1c991f /muswd.c
parent1ee28cd5ece6c035af2ab445ec774d7e0cc054ec (diff)
downloadmusw-06f817044e7b2ec0bf63ed37a1cadd9f3818a787.tar.gz
musw-06f817044e7b2ec0bf63ed37a1cadd9f3818a787.tar.bz2
musw-06f817044e7b2ec0bf63ed37a1cadd9f3818a787.zip
use libgeometry from the system. got rid of global `theparty`. wrote a little man page draft.
Diffstat (limited to 'muswd.c')
-rw-r--r--muswd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/muswd.c b/muswd.c
index ce69c8d..b84436a 100644
--- a/muswd.c
+++ b/muswd.c
@@ -3,13 +3,14 @@
#include <ip.h>
#include <thread.h>
#include <draw.h>
-#include "libgeometry/geometry.h"
+#include <geometry.h>
#include "dat.h"
#include "fns.h"
int debug;
Lobby *lobby;
+Party theparty;
void
@@ -89,7 +90,7 @@ threadsim(void *)
lobby->purge(lobby);
if(lobby->getcouple(lobby, couple) != -1){
- newparty(couple);
+ newparty(&theparty, couple);
theparty.prev->u->reset(theparty.prev->u);
}
@@ -232,7 +233,7 @@ threadmain(int argc, char *argv[])
fprint(2, "listening on %s\n", addr);
lobby = newlobby();
- inittheparty();
+ initparty(&theparty);
threadcreate(threadC2, nil, 4096);
threadcreate(threadlisten, &adfd, 4096);