From 485ba81a87c50c23d1f97318e42f4937af1fda1f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 4 Jun 2016 03:21:57 +0300 Subject: Remove some useless includes if using SDL2. --- src/being/compoundsprite.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/being/compoundsprite.cpp') 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 -- cgit v1.2.3-70-g09d2