From d6be6682ec69706b765ab51863bcd5805a7cbd7d Mon Sep 17 00:00:00 2001 From: numzero Date: Wed, 22 Feb 2023 21:38:32 +0300 Subject: Drop dependency on IrrCompileConfig The only remaining thing is IRRLICHT_SDK_VERSION via irrlicht.h --- src/client/clientlauncher.cpp | 4 ---- src/client/game.cpp | 2 +- src/client/tile.cpp | 1 - 3 files changed, 1 insertion(+), 6 deletions(-) (limited to 'src/client') diff --git a/src/client/clientlauncher.cpp b/src/client/clientlauncher.cpp index 843c7ad32..15263de9b 100644 --- a/src/client/clientlauncher.cpp +++ b/src/client/clientlauncher.cpp @@ -553,13 +553,9 @@ void ClientLauncher::main_menu(MainMenuData *menudata) m_rendering_engine->get_raw_device()->getCursorControl()->setVisible(true); // Set absolute mouse mode -#if IRRLICHT_VERSION_MT_REVISION >= 9 m_rendering_engine->get_raw_device()->getCursorControl()->setRelativeMode(false); #endif -#endif - - /* show main menu */ GUIEngine mymenu(&input->joystick, guiroot, m_rendering_engine, &g_menumgr, menudata, *kill); diff --git a/src/client/game.cpp b/src/client/game.cpp index c5dc8f6d9..edd0039e9 100644 --- a/src/client/game.cpp +++ b/src/client/game.cpp @@ -2549,7 +2549,7 @@ void Game::checkZoomEnabled() void Game::updateCameraDirection(CameraOrientation *cam, float dtime) { -#if !defined(__ANDROID__) && IRRLICHT_VERSION_MT_REVISION >= 9 +#ifndef __ANDROID__ if (isMenuActive()) device->getCursorControl()->setRelativeMode(false); else diff --git a/src/client/tile.cpp b/src/client/tile.cpp index 35e5585a0..a29a6611a 100644 --- a/src/client/tile.cpp +++ b/src/client/tile.cpp @@ -21,7 +21,6 @@ with this program; if not, write to the Free Software Foundation, Inc., #include #include -#include #include "util/string.h" #include "util/container.h" #include "util/thread.h" -- cgit v1.2.3