Add comment to clarify a if/else

This commit is contained in:
Alayan-stk-2
2018-05-07 02:34:52 +02:00
committed by GitHub
parent 7ee3d6576e
commit 473732b952

View File

@@ -88,6 +88,8 @@ RaceGUI::RaceGUI()
// and the map is in a player view, scale down the map
if (race_manager->getNumLocalPlayers() >= 4 && !race_manager->getIfEmptyScreenSpaceExists())
{
// If the resolution is wider than 4:3, we don't have to scaledown the minimap as much
// Uses some margin, in case the game's screen is not exactly 4:3
if ( ((float) irr_driver->getFrameSize().Width / (float) irr_driver->getFrameSize().Height) >
(4.1f/3.0f))
{