mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03: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:
@@ -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.
|
// If it doesn't fit onscreen (including square brackets), reduce the horizontal spacing by 5 and retry.
|
||||||
bool done_once = false;
|
bool done_once = false;
|
||||||
int menuwidth = 0;
|
int menuwidth = 0;
|
||||||
for (; !done_once || (menuwidth > 272 && maxspacing > 0); maxspacing -= 5)
|
for (; !done_once || (menuwidth > 272 && menuspacing > 0); maxspacing -= 5)
|
||||||
{
|
{
|
||||||
done_once = true;
|
done_once = true;
|
||||||
menuspacing = maxspacing;
|
menuspacing = maxspacing;
|
||||||
|
|||||||
Reference in New Issue
Block a user