ref: 268b944a04cbf8b65379acbae6d059dea6fe83ae
parent: ef84ea063aea16fea82f017114334ef84e2034ce
author: mkf <mkf@cloud9p.org>
date: Sat May 11 13:05:40 EDT 2024
srv: minor changes
--- a/srv.c
+++ b/srv.c
@@ -181,7 +181,6 @@
}
else if(state == Playing)
{
- dprint("turn: %d\n", turn);
printclients("SYNC %d %s\n", turn, syncmsg);
}
else
@@ -188,11 +187,13 @@
{
if(state == Won)
{
+ dprint("hah, trapper won\n");
fprint(sockfd[0], "WON\n");
fprint(sockfd[1], "LOST\n");
}
else if(state == Lost)
{
+ dprint("welp, trapper lost\n");
fprint(sockfd[0], "LOST\n");
fprint(sockfd[1], "WON\n");
}
@@ -287,7 +288,7 @@
strncpy(syncmsg, s, 7);
/* better be safe than sorry */
syncmsg[7] = '\0';
- dprint("syncmsg = %s\n", syncmsg);
+ dprint("syncmsg = %s\n", syncmsg);
}
}