From 46d5fc6576a4745db96c5e4c80ff67f0ba8e914e Mon Sep 17 00:00:00 2001 From: Dav999-v Date: Mon, 29 Jun 2020 02:58:38 +0200 Subject: [PATCH] Correct minimum horizontal spacing check It should've checked the final spacing and not the intermediate maximum value. I had changed some things around, and now the minimum spacing was 5 instead of 0 by mistake. --- desktop_version/src/Game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/Game.cpp b/desktop_version/src/Game.cpp index ad65a72a..aef1d554 100644 --- a/desktop_version/src/Game.cpp +++ b/desktop_version/src/Game.cpp @@ -7469,7 +7469,7 @@ void Game::createmenu( enum Menu::MenuName t, bool samemenu/*= false*/ ) // If it doesn't fit onscreen (including square brackets), reduce the horizontal spacing by 5 and retry. bool done_once = false; int menuwidth = 0; - for (; !done_once || (menuwidth > 272 && maxspacing > 0); maxspacing -= 5) + for (; !done_once || (menuwidth > 272 && menuspacing > 0); maxspacing -= 5) { done_once = true; menuspacing = maxspacing;