summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Howard2008-09-07 21:19:41 +0000
committerSimon Howard2008-09-07 21:19:41 +0000
commit1445d6595a19e1b46658beefe276840d01ac9c17 (patch)
tree60dcfbc53f3a2e7326c9091d03c42b46223cdb2a /src
parent37865c5d5b53fd0427b6f22d0a13f830a74c3064 (diff)
downloadchocolate-doom-1445d6595a19e1b46658beefe276840d01ac9c17.tar.gz
chocolate-doom-1445d6595a19e1b46658beefe276840d01ac9c17.tar.bz2
chocolate-doom-1445d6595a19e1b46658beefe276840d01ac9c17.zip
Move m_bbox.[ch] back to common (needed by v_video.c). Remove some
common->doom header dependencies. Subversion-branch: /branches/raven-branch Subversion-revision: 1211
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am1
-rw-r--r--src/doom/Makefile.am1
-rw-r--r--src/doom/d_main.h8
-rw-r--r--src/i_joystick.c2
-rw-r--r--src/i_main.c9
-rw-r--r--src/i_video.c1
-rw-r--r--src/m_bbox.c (renamed from src/doom/m_bbox.c)0
-rw-r--r--src/m_bbox.h (renamed from src/doom/m_bbox.h)0
-rw-r--r--src/m_misc.c1
-rw-r--r--src/v_video.c3
10 files changed, 10 insertions, 16 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 9e751dd9..81fbc16e 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -39,6 +39,7 @@ i_system.c i_system.h \
i_timer.c i_timer.h \
i_video.c i_video.h \
m_argv.c m_argv.h \
+m_bbox.c m_bbox.h \
m_cheat.c m_cheat.h \
m_config.c m_config.h \
m_fixed.c m_fixed.h \
diff --git a/src/doom/Makefile.am b/src/doom/Makefile.am
index 3e142f93..a24aa7f2 100644
--- a/src/doom/Makefile.am
+++ b/src/doom/Makefile.am
@@ -22,7 +22,6 @@ g_game.c g_game.h \
hu_lib.c hu_lib.h \
hu_stuff.c hu_stuff.h \
info.c info.h \
-m_bbox.c m_bbox.h \
m_menu.c m_menu.h \
p_ceilng.c \
p_doors.c \
diff --git a/src/doom/d_main.h b/src/doom/d_main.h
index 79f7c7e3..da59d59d 100644
--- a/src/doom/d_main.h
+++ b/src/doom/d_main.h
@@ -33,14 +33,6 @@
-//
-// D_DoomMain()
-// Not a globally visible function, just included for source reference,
-// calls all startup code, parses command line options.
-// If not overrided by user input, calls N_AdvanceDemo.
-//
-void D_DoomMain (void);
-
// Read events from all input devices
void D_ProcessEvents (void);
diff --git a/src/i_joystick.c b/src/i_joystick.c
index 06d3679b..1547e569 100644
--- a/src/i_joystick.c
+++ b/src/i_joystick.c
@@ -31,10 +31,8 @@
#include <stdio.h>
#include <string.h>
-#include "doomdef.h"
#include "doomtype.h"
#include "d_event.h"
-#include "d_main.h"
#include "i_joystick.h"
// When an axis is within the dead zone, it is set to zero.
diff --git a/src/i_main.c b/src/i_main.c
index 0ba37d11..ac4a68e3 100644
--- a/src/i_main.c
+++ b/src/i_main.c
@@ -37,7 +37,14 @@
#include "doomtype.h"
#include "i_system.h"
#include "m_argv.h"
-#include "d_main.h"
+
+//
+// D_DoomMain()
+// Not a globally visible function, just included for source reference,
+// calls all startup code, parses command line options.
+//
+
+void D_DoomMain (void);
int main(int argc, char **argv)
{
diff --git a/src/i_video.c b/src/i_video.c
index 4c70c48c..8b7f6892 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -43,7 +43,6 @@
#include "i_video.h"
#include "i_scale.h"
#include "m_argv.h"
-#include "s_sound.h"
#include "v_video.h"
#include "w_wad.h"
#include "z_zone.h"
diff --git a/src/doom/m_bbox.c b/src/m_bbox.c
index 02389209..02389209 100644
--- a/src/doom/m_bbox.c
+++ b/src/m_bbox.c
diff --git a/src/doom/m_bbox.h b/src/m_bbox.h
index 3788044b..3788044b 100644
--- a/src/doom/m_bbox.h
+++ b/src/m_bbox.h
diff --git a/src/m_misc.c b/src/m_misc.c
index db62fd42..a42d6b89 100644
--- a/src/m_misc.c
+++ b/src/m_misc.c
@@ -43,7 +43,6 @@
#endif
#include "doomtype.h"
-#include "doomstat.h"
#include "deh_str.h"
diff --git a/src/v_video.c b/src/v_video.c
index 918e64e1..a9294cf6 100644
--- a/src/v_video.c
+++ b/src/v_video.c
@@ -32,12 +32,11 @@
#include "i_system.h"
#include "doomtype.h"
-#include "doomdata.h"
#include "deh_str.h"
-#include "m_bbox.h"
#include "i_swap.h"
#include "i_video.h"
+#include "m_bbox.h"
#include "m_misc.h"
#include "v_video.h"
#include "w_wad.h"