Avoid minimap on left side when spectating with touch gui

This commit is contained in:
Deve 2019-09-08 22:12:33 +02:00
parent 137e9dd99e
commit 4895cd27a4

View File

@ -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);