X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fnetserv.c;h=11fd9bc864c4bb528f62c00f776bc23c1b65d894;hb=bc1e7fc2edb32a410dfa7cf098933010d5014761;hp=e6ba74ab06c1fe618da823fba9bce0017f3af2a9;hpb=681721dddc91bcdaef50002d1e861cc8d484e938;p=rocksndiamonds.git diff --git a/src/netserv.c b/src/netserv.c index e6ba74ab..11fd9bc8 100644 --- a/src/netserv.c +++ b/src/netserv.c @@ -1,7 +1,7 @@ /*********************************************************** * Rocks'n'Diamonds -- McDuffin Strikes Back! * *----------------------------------------------------------* -* (c) 1995-2001 Artsoft Entertainment * +* (c) 1995-2002 Artsoft Entertainment * * Holger Schemel * * Detmolder Strasse 189 * * 33604 Bielefeld * @@ -11,7 +11,7 @@ * network.c * ***********************************************************/ -#include "libgame/libgame.h" +#include "libgame/platform.h" #if defined(PLATFORM_UNIX) @@ -20,15 +20,12 @@ #include #include #include -#include #include #include #include #include -#if 0 #include "libgame/libgame.h" -#endif #include "netserv.h" @@ -380,7 +377,7 @@ static void Handle_OP_STOP_PLAYING(struct NetworkServerPlayerInfo *player) 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; @@ -480,7 +477,7 @@ void NetworkServer(int port, int serveronly) 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) @@ -638,8 +635,8 @@ void NetworkServer(int port, int serveronly) 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: