summaryrefslogtreecommitdiff
path: root/src/net_common.c
diff options
context:
space:
mode:
authorSimon Howard2011-09-17 16:39:27 +0000
committerSimon Howard2011-09-17 16:39:27 +0000
commit4dc7b33e17069c6559e9b1b7cc1ecd878162f629 (patch)
treef5c2290352d1b3c1e927a85ee0a3b3279862c5c4 /src/net_common.c
parent1f170ff1ce5cf9b9b55b3a09c0840e237432477c (diff)
downloadchocolate-doom-4dc7b33e17069c6559e9b1b7cc1ecd878162f629.tar.gz
chocolate-doom-4dc7b33e17069c6559e9b1b7cc1ecd878162f629.tar.bz2
chocolate-doom-4dc7b33e17069c6559e9b1b7cc1ecd878162f629.zip
Add multiplayer query code to setup tool, and rework join game
interface. Subversion-branch: /branches/v2-branch Subversion-revision: 2382
Diffstat (limited to 'src/net_common.c')
-rw-r--r--src/net_common.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/net_common.c b/src/net_common.c
index 57699fd9..f25cc73d 100644
--- a/src/net_common.c
+++ b/src/net_common.c
@@ -22,7 +22,6 @@
//
#include <stdio.h>
-#include <ctype.h>
#include <stdlib.h>
#include "doomtype.h"
@@ -32,6 +31,7 @@
#include "net_common.h"
#include "net_io.h"
#include "net_packet.h"
+#include "net_structrw.h"
// connections time out after 10 seconds
@@ -513,26 +513,6 @@ unsigned int NET_ExpandTicNum(unsigned int relative, unsigned int b)
return result;
}
-// "Safe" version of puts, for displaying messages received from the
-// network.
-
-void NET_SafePuts(char *s)
-{
- char *p;
-
- // Do not do a straight "puts" of the string, as this could be
- // dangerous (sending control codes to terminals can do all
- // kinds of things)
-
- for (p=s; *p; ++p)
- {
- if (isprint(*p))
- putchar(*p);
- }
-
- putchar('\n');
-}
-
// Check that game settings are valid
boolean NET_ValidGameSettings(GameMode_t mode, GameMission_t mission,