projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-19981013-1
[rocksndiamonds.git]
/
src
/
network.c
diff --git
a/src/network.c
b/src/network.c
index 2d4e0e64f542ae9de19ba38e1d6a2d47374eb531..d92a09093dc30b904ab0707cc327723e2fd29fea 100644
(file)
--- a/
src/network.c
+++ b/
src/network.c
@@
-98,7
+98,7
@@
static void flushbuf()
static void sendbuf(int len)
{
static void sendbuf(int len)
{
- if (
!standalone
)
+ if (
network
)
{
realbuf[0] = realbuf[1] = realbuf[2] = 0;
realbuf[3] = (unsigned char)len;
{
realbuf[0] = realbuf[1] = realbuf[2] = 0;
realbuf[3] = (unsigned char)len;
@@
-156,7
+156,7
@@
static void StartNetworkServer(int port)
case -1:
Error(ERR_RETURN,
"cannot create network server process - no network games");
case -1:
Error(ERR_RETURN,
"cannot create network server process - no network games");
-
standalone = TRU
E;
+
network = FALS
E;
return;
default:
return;
default:
@@
-506,6
+506,9
@@
static void Handle_OP_STOP_PLAYING()
printf("OP_STOP_PLAYING: %d\n", buf[0]);
sprintf(msgbuf, "client %d stops game", buf[0]);
sysmsg(msgbuf);
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()
}
static void Handle_OP_MOVE_FIGURE()
@@
-637,9
+640,6
@@
void HandleNetworking()
fd_set rfds;
int r = 0;
fd_set rfds;
int r = 0;
- if (standalone)
- return;
-
flushbuf();
FD_ZERO(&rfds);
flushbuf();
FD_ZERO(&rfds);