static void sendbuf(int len)
{
- if (!standalone)
+ if (network)
{
realbuf[0] = realbuf[1] = realbuf[2] = 0;
realbuf[3] = (unsigned char)len;
case -1:
Error(ERR_RETURN,
"cannot create network server process - no network games");
- standalone = TRUE;
+ network = FALSE;
return;
default:
printf("OP_STOP_PLAYING: %d\n", buf[0]);
sprintf(msgbuf, "client %d stops game", buf[0]);
sysmsg(msgbuf);
+
+ game_status = MAINMENU;
+ DrawMainMenu();
}
static void Handle_OP_MOVE_FIGURE()
int frame_nr;
int i;
+ if (!network_playing)
+ return;
+
frame_nr =
(buf[2] << 24) | (buf[3] << 16) | (buf[4] << 8) | (buf[5]);
fd_set rfds;
int r = 0;
- if (standalone)
- return;
-
flushbuf();
FD_ZERO(&rfds);