summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-04 03:21:57 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-04 03:21:57 +0300
commit485ba81a87c50c23d1f97318e42f4937af1fda1f (patch)
treeb1b85f22e9bf2ea10e5fcddf3000506d207015fe /src/being
parent554210becbfc9de611699889a3fd0f53525a1b83 (diff)
downloadplus-485ba81a87c50c23d1f97318e42f4937af1fda1f.tar.gz
plus-485ba81a87c50c23d1f97318e42f4937af1fda1f.tar.bz2
plus-485ba81a87c50c23d1f97318e42f4937af1fda1f.tar.xz
plus-485ba81a87c50c23d1f97318e42f4937af1fda1f.zip
Remove some useless includes if using SDL2.
Diffstat (limited to 'src/being')
-rw-r--r--src/being/compoundsprite.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/being/compoundsprite.cpp b/src/being/compoundsprite.cpp
index cd0ee8d62..39013767c 100644
--- a/src/being/compoundsprite.cpp
+++ b/src/being/compoundsprite.cpp
@@ -22,7 +22,6 @@
#include "being/compoundsprite.h"
#include "configuration.h"
-#include "game.h"
#ifdef USE_OPENGL
#include "main.h"
@@ -32,10 +31,6 @@
#include "being/compounditem.h"
-#include "const/resources/map/map.h"
-
-#include "resources/map/map.h"
-
#include "render/surfacegraphics.h"
#include "resources/image.h"
@@ -44,7 +39,16 @@
#include "utils/delete2.h"
#include "utils/dtor.h"
#include "utils/sdlcheckutils.h"
+
+#ifndef USE_SDL2
+#include "game.h"
+
+#include "const/resources/map/map.h"
+
+#include "resources/map/map.h"
+
#include "utils/timer.h"
+#endif
#include <SDL_endian.h>