projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20031128-1-src
[rocksndiamonds.git]
/
src
/
netserv.c
diff --git
a/src/netserv.c
b/src/netserv.c
index 21a48572d08af642fc09fbb42cd94630971fa0b6..11fd9bc864c4bb528f62c00f776bc23c1b65d894 100644
(file)
--- a/
src/netserv.c
+++ b/
src/netserv.c
@@
-20,7
+20,6
@@
#include <signal.h>
#include <sys/socket.h>
#include <errno.h>
#include <signal.h>
#include <sys/socket.h>
#include <errno.h>
-#include <string.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
@@
-378,7
+377,7
@@
static void Handle_OP_STOP_PLAYING(struct NetworkServerPlayerInfo *player)
broadcast(NULL, 2, 0);
}
broadcast(NULL, 2, 0);
}
-static void Handle_OP_MOVE_
FIGURE
(struct NetworkServerPlayerInfo *player)
+static void Handle_OP_MOVE_
PLAYER
(struct NetworkServerPlayerInfo *player)
{
struct NetworkServerPlayerInfo *v;
int last_client_nr = 0;
{
struct NetworkServerPlayerInfo *v;
int last_client_nr = 0;
@@
-478,7
+477,7
@@
void NetworkServer(int port, int serveronly)
if (is_daemon)
{
/* become a daemon, breaking all ties with the controlling terminal */
if (is_daemon)
{
/* become a daemon, breaking all ties with the controlling terminal */
- options.verbose =
0
;
+ options.verbose =
FALSE
;
for (i=0; i<255; i++)
{
if (i != lfd)
for (i=0; i<255; i++)
{
if (i != lfd)
@@
-636,8
+635,8
@@
void NetworkServer(int port, int serveronly)
Handle_OP_STOP_PLAYING(player);
break;
Handle_OP_STOP_PLAYING(player);
break;
- case OP_MOVE_
FIGURE
:
- Handle_OP_MOVE_
FIGURE
(player);
+ case OP_MOVE_
PLAYER
:
+ Handle_OP_MOVE_
PLAYER
(player);
break;
case OP_BROADCAST_MESSAGE:
break;
case OP_BROADCAST_MESSAGE: