summaryrefslogtreecommitdiff
path: root/src/net_common.h
diff options
context:
space:
mode:
authorSimon Howard2006-04-06 17:53:43 +0000
committerSimon Howard2006-04-06 17:53:43 +0000
commit2d45e6c02cfe002ff4c5a3aa6a360f918ee54e61 (patch)
tree2df87e808c03638bc4e373998b1e9dfc41a4674c /src/net_common.h
parent89332f29ae9d780129c2bcc2a831f959eda255ec (diff)
downloadchocolate-doom-2d45e6c02cfe002ff4c5a3aa6a360f918ee54e61.tar.gz
chocolate-doom-2d45e6c02cfe002ff4c5a3aa6a360f918ee54e61.tar.bz2
chocolate-doom-2d45e6c02cfe002ff4c5a3aa6a360f918ee54e61.zip
Sanity check data received by the server. Send version string earlier
in SYN packets to allow the fields that follow to be changed later on if necessary. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 461
Diffstat (limited to 'src/net_common.h')
-rw-r--r--src/net_common.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net_common.h b/src/net_common.h
index 973a66e6..d645b002 100644
--- a/src/net_common.h
+++ b/src/net_common.h
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: net_common.h 412 2006-03-07 18:24:12Z fraggle $
+// $Id: net_common.h 461 2006-04-06 17:53:43Z fraggle $
//
// Copyright(C) 2005 Simon Howard
//
@@ -135,5 +135,9 @@ net_packet_t *NET_Conn_NewReliable(net_connection_t *conn, int packet_type);
void NET_SafePuts(char *msg);
unsigned int NET_ExpandTicNum(unsigned int relative, unsigned int b);
+boolean NET_ValidGameMode(GameMode_t mode, GameMission_t mission);
+boolean NET_ValidGameSettings(GameMode_t mode, GameMission_t mission,
+ net_gamesettings_t *settings);
+
#endif /* #ifndef NET_COMMON_H */