main.cpp: server-only builds should not include client headers
[oweals/minetest.git] / src / main.cpp
index e2f2b22cf74b07251ed21083d77302f4dfd75064..1a3c49658b82541422fa07f66caaadc1d4748337 100644 (file)
@@ -18,7 +18,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 */
 
 #include "irrlicht.h" // createDevice
-#include "mainmenumanager.h"
 #include "irrlichttypes_extrabloated.h"
 #include "chat_interface.h"
 #include "debug.h"
@@ -26,14 +25,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "server.h"
 #include "filesys.h"
 #include "version.h"
-#include "guiMainMenu.h"
 #include "game.h"
 #include "defaultsettings.h"
 #include "gettext.h"
 #include "log.h"
 #include "quicktune.h"
 #include "httpfetch.h"
-#include "guiEngine.h"
 #include "gameparams.h"
 #include "database.h"
 #include "config.h"
@@ -44,7 +41,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
        #include "terminal_chat_console.h"
 #endif
 #ifndef SERVER
+#include "guiMainMenu.h"
 #include "client/clientlauncher.h"
+#include "guiEngine.h"
+#include "mainmenumanager.h"
 #endif
 
 #ifdef HAVE_TOUCHSCREENGUI