diff options
Diffstat (limited to 'src/i_net.c')
-rw-r--r-- | src/i_net.c | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/src/i_net.c b/src/i_net.c index 11ed335d..0fd21727 100644 --- a/src/i_net.c +++ b/src/i_net.c @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: i_net.c 52 2005-08-12 16:54:15Z fraggle $ +// $Id: i_net.c 57 2005-08-30 22:11:10Z fraggle $ // // Copyright(C) 1993-1996 Id Software, Inc. // Copyright(C) 2005 Simon Howard @@ -22,6 +22,9 @@ // 02111-1307, USA. // // $Log$ +// Revision 1.6 2005/08/30 22:11:10 fraggle +// Windows fixes +// // Revision 1.5 2005/08/12 16:54:15 fraggle // Port network code to use SDL_net // @@ -43,7 +46,7 @@ //----------------------------------------------------------------------------- static const char -rcsid[] = "$Id: i_net.c 52 2005-08-12 16:54:15Z fraggle $"; +rcsid[] = "$Id: i_net.c 57 2005-08-30 22:11:10Z fraggle $"; #include <stdlib.h> #include <string.h> @@ -74,6 +77,8 @@ boolean NetListen (void); int DOOMPORT = 8626; +#ifndef NO_SDL_NET + static UDPsocket udpsocket; static UDPpacket *packet; @@ -325,3 +330,28 @@ void I_NetCmd (void) I_Error ("Bad net cmd: %i\n",doomcom->command); } +#else + +void I_NetCmd(void) +{ +} + + +void I_InitNetwork (void) +{ + doomcom = malloc (sizeof (*doomcom) ); + memset (doomcom, 0, sizeof(*doomcom) ); + + // single player game + netgame = false; + doomcom->id = DOOMCOM_ID; + doomcom->numplayers = doomcom->numnodes = 1; + doomcom->deathmatch = false; + doomcom->consoleplayer = 0; + return; +} + + +#endif /* #ifndef NO_SDL_NET */ + + |