From 4895cd27a4791f8cae1a85bae7ab7e09cfb57fbb Mon Sep 17 00:00:00 2001 From: Deve Date: Sun, 8 Sep 2019 22:12:33 +0200 Subject: [PATCH] Avoid minimap on left side when spectating with touch gui --- src/states_screens/race_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/states_screens/race_gui.cpp b/src/states_screens/race_gui.cpp index fc53a4dc9..748faa923 100644 --- a/src/states_screens/race_gui.cpp +++ b/src/states_screens/race_gui.cpp @@ -211,8 +211,8 @@ void RaceGUI::calculateMinimapSize() m_map_width = (int)(map_size * scaling); m_map_height = (int)(map_size * scaling); - if(UserConfigParams::m_minimap_display == 1 && /*map on the right side*/ - race_manager->getNumLocalPlayers() == 1) + if ((UserConfigParams::m_minimap_display == 1 && /*map on the right side*/ + race_manager->getNumLocalPlayers() == 1) || m_multitouch_gui) { m_map_left = (int)(irr_driver->getActualScreenSize().Width - m_map_width - 10.0f*scaling);