// netserv.c
// ============================================================================
-#include "libgame/platform.h"
-
-#if defined(NETWORK_AVALIABLE)
-
#include <fcntl.h>
#include <sys/time.h>
#include <signal.h>
#include <errno.h>
-#include "main.h"
-
#include "libgame/libgame.h"
#include "netserv.h"
+#include "main.h"
+
static int clients = 0;
static int onceonly = 0;
free(player);
clients--;
+#if 0 /* do not terminate network server if last player disconnected */
if (onceonly && clients == 0)
{
if (options.verbose)
}
exit(0);
}
+#endif
}
static void AddPlayer(TCPsocket fd)
}
}
}
-
-#endif /* NETWORK_AVALIABLE */