From 82dc26f94910d6196dd9c70aa0b7f1581da2ade9 Mon Sep 17 00:00:00 2001 From: onpon4 Date: Fri, 20 Jan 2017 23:26:49 -0500 Subject: [PATCH] More cleanup. --- src/alien.cpp | 2 -- src/audio.cpp | 1 - src/bullet.cpp | 2 -- src/collectable.cpp | 11 ++++++++++- src/structs.h | 2 ++ 5 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/alien.cpp b/src/alien.cpp index 332ad0b..0d90781 100644 --- a/src/alien.cpp +++ b/src/alien.cpp @@ -19,8 +19,6 @@ along with this program. If not, see . #include -#include "SDL.h" - #include "defs.h" #include "structs.h" diff --git a/src/audio.cpp b/src/audio.cpp index 60de365..15c97cb 100644 --- a/src/audio.cpp +++ b/src/audio.cpp @@ -19,7 +19,6 @@ along with this program. If not, see . #include -#include "SDL.h" #include "SDL_mixer.h" #include "defs.h" diff --git a/src/bullet.cpp b/src/bullet.cpp index e48de23..c99d395 100644 --- a/src/bullet.cpp +++ b/src/bullet.cpp @@ -19,8 +19,6 @@ along with this program. If not, see . #include -#include "SDL.h" - #include "defs.h" #include "structs.h" diff --git a/src/collectable.cpp b/src/collectable.cpp index 8b9e3b7..1c06cfe 100644 --- a/src/collectable.cpp +++ b/src/collectable.cpp @@ -17,11 +17,20 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include "Starfighter.h" +#include #include "defs.h" #include "structs.h" +#include "audio.h" +#include "collectable.h" +#include "engine.h" +#include "explosion.h" +#include "game.h" +#include "gfx.h" +#include "player.h" +#include "weapons.h" + /* Create a new collectable item based on supplied arguments. */ diff --git a/src/structs.h b/src/structs.h index 9d484f0..e31a7aa 100644 --- a/src/structs.h +++ b/src/structs.h @@ -20,6 +20,8 @@ along with this program. If not, see . #ifndef STRUCTS_H #define STRUCTS_H +#include "SDL.h" + typedef struct Object_ { int active;