projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improved handling network errors (show message instead of stopping program)
[rocksndiamonds.git]
/
src
/
netserv.c
diff --git
a/src/netserv.c
b/src/netserv.c
index 02a014fd86f3757a6b3891bbb302b7cfb2007d1c..4fd8461076fa0c3a5332ca500f9b0c9d2ed916f4 100644
(file)
--- a/
src/netserv.c
+++ b/
src/netserv.c
@@
-9,20
+9,16
@@
// netserv.c
// ============================================================================
// netserv.c
// ============================================================================
-#include "libgame/platform.h"
-
-#if defined(NETWORK_AVALIABLE)
-
#include <fcntl.h>
#include <sys/time.h>
#include <signal.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/time.h>
#include <signal.h>
#include <errno.h>
-#include "main.h"
-
#include "libgame/libgame.h"
#include "netserv.h"
#include "libgame/libgame.h"
#include "netserv.h"
+#include "main.h"
+
static int clients = 0;
static int onceonly = 0;
static int clients = 0;
static int onceonly = 0;
@@
-657,5
+653,3
@@
void NetworkServer(int port, int serveronly)
}
}
}
}
}
}
-
-#endif /* NETWORK_AVALIABLE */