ref: a1c823693b136d4534a4dec4307a27411a37dd4a
parent: 383bd7c3c39beed8173d0e8e97a7f0219b12fe9c
author: Simon Howard <[email protected]>
date: Thu Oct 13 15:43:47 EDT 2011
Remove d_net.h, include d_loop.h instead. Remove duplicate definitions that are in d_loop.h. Subversion-branch: /branches/v2-branch Subversion-revision: 2415
--- a/src/doom/Makefile.am
+++ b/src/doom/Makefile.am
@@ -7,7 +7,7 @@
d_englsh.h \
d_items.c d_items.h \
d_main.c d_main.h \
-d_net.c d_net.h \
+d_net.c \
doomdata.h \
doomdef.c doomdef.h \
doomstat.c doomstat.h \
--- a/src/doom/d_net.h
+++ /dev/null
@@ -1,34 +1,0 @@
-// Emacs style mode select -*- C++ -*-
-//-----------------------------------------------------------------------------
-//
-// Copyright(C) 1993-1996 Id Software, Inc.
-// Copyright(C) 2005 Simon Howard
-//
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of the GNU General Public License
-// as published by the Free Software Foundation; either version 2
-// of the License, or (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-// 02111-1307, USA.
-//
-// DESCRIPTION:
-// Networking stuff.
-//
-//-----------------------------------------------------------------------------
-
-
-#ifndef __D_NET__
-#define __D_NET__
-
-#include "d_loop.h"
-
-#endif
-
--- a/src/doom/doomstat.h
+++ b/src/doom/doomstat.h
@@ -36,7 +36,7 @@
// We need globally shared data structures,
// for defining the global state variables.
#include "doomdata.h"
-#include "d_net.h"
+#include "d_loop.h"
// We need the playr data structure as well.
#include "d_player.h"
@@ -227,9 +227,6 @@
-extern int gametic;
-
-
// Bookkeeping on players - state.
extern player_t players[MAXPLAYERS];
@@ -292,12 +289,7 @@
extern int rndindex;
-extern int maketic;
-extern int nettics[MAXPLAYERS];
-
extern ticcmd_t *netcmds;
-extern int ticdup;
-
#endif
--- a/src/doom/r_main.c
+++ b/src/doom/r_main.c
@@ -35,7 +35,7 @@
#include "doomdef.h"
-#include "d_net.h"
+#include "d_loop.h"
#include "m_bbox.h"
#include "m_menu.h"