1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

Account for lack of prev/next options if only one page of levels

Otherwise the seventh and eighth levels would be grouped with the return
menu button.

Fixes #826.
This commit is contained in:
Misa 2021-08-18 09:17:41 -07:00
parent d50367ac62
commit 9b3ae770fb

View file

@ -1595,7 +1595,16 @@ void Graphics::drawmenu( int cr, int cg, int cb, bool levelmenu /*= false*/ )
if (levelmenu)
{
if (game.menuoptions.size() - i <= 3)
size_t separator;
if (ed.ListOfMetaData.size() > 8)
{
separator = 3;
}
else
{
separator = 1;
}
if (game.menuoptions.size() - i <= separator)
{
// We're on "next page", "previous page", or "return to menu". Draw them separated by a bit
y += 8;