mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01: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:
parent
0023c821db
commit
46d5fc6576
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue