mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user