ref: 166cba2f549f043f0892a4d25aaf3ef8014e1c2b
parent: b180d8306195219bf734953df88f21e23635f635
author: mkf <mkf@cloud9p.org>
date: Sun May 19 13:32:48 EDT 2024
gui9net: don't read when game is over
--- a/gui9net.c
+++ b/gui9net.c
@@ -320,7 +320,7 @@
}
for(;;)
{
- if(networked && waitbit)
+ if(networked && waitbit && isplaying)
{
msg = netmain();
if(msg->tokens[0] != nil && strcmp(msg->tokens[0], "SYNC"))
@@ -333,7 +333,7 @@
m = ev.mouse;
if(m.buttons == 0)
{
- if(mousedown && (state == Playing || state == Start))
+ if(mousedown && isplaying)
{
mousedown = 0;
if(turn % 2 == 0)