1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-14 08:43:37 +02:00

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.
This commit is contained in:
Dav999-v 2020-06-29 02:58:38 +02:00
parent 0023c821db
commit 46d5fc6576

View File

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