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:
parent
d50367ac62
commit
9b3ae770fb
1 changed files with 10 additions and 1 deletions
|
@ -1595,7 +1595,16 @@ void Graphics::drawmenu( int cr, int cg, int cb, bool levelmenu /*= false*/ )
|
||||||
|
|
||||||
if (levelmenu)
|
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
|
// We're on "next page", "previous page", or "return to menu". Draw them separated by a bit
|
||||||
y += 8;
|
y += 8;
|
||||||
|
|
Loading…
Reference in a new issue