From 2d45e6c02cfe002ff4c5a3aa6a360f918ee54e61 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Thu, 6 Apr 2006 17:53:43 +0000 Subject: 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 --- src/net_common.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/net_common.h') 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 */ -- cgit v1.2.3