aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authornumzero <numzer0@yandex.ru>2023-02-22 21:38:32 +0300
committersfan5 <sfan5@live.de>2023-03-01 09:06:23 +0100
commitd6be6682ec69706b765ab51863bcd5805a7cbd7d (patch)
treed35aaf0ac12e74f4bac9a597fe524209ee2b14e4 /src/client
parent39f4d26177ec1c8f246133c532a42ef7429bc36d (diff)
downloadminetest-d6be6682ec69706b765ab51863bcd5805a7cbd7d.tar.xz
Drop dependency on IrrCompileConfig
The only remaining thing is IRRLICHT_SDK_VERSION via irrlicht.h
Diffstat (limited to 'src/client')
-rw-r--r--src/client/clientlauncher.cpp4
-rw-r--r--src/client/game.cpp2
-rw-r--r--src/client/tile.cpp1
3 files changed, 1 insertions, 6 deletions
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 <algorithm>
#include <ICameraSceneNode.h>
-#include <IrrCompileConfig.h>
#include "util/string.h"
#include "util/container.h"
#include "util/thread.h"