mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
Fix indentation style of case Menu::levellist in menurender
This is one of the few places still using 2-space indentation instead of 4 spaces, and it makes it very annoying to work with when your tab key inserts four spaces - so I could either just mimic it for the time being, or I could just fix it while I was at it.
This commit is contained in:
parent
7ecff42e0e
commit
0e30087f3b
1 changed files with 38 additions and 33 deletions
|
@ -187,16 +187,21 @@ static void menurender(void)
|
|||
#if !defined(NO_CUSTOM_LEVELS)
|
||||
case Menu::levellist:
|
||||
{
|
||||
if(cl.ListOfMetaData.size()==0){
|
||||
if (cl.ListOfMetaData.size()==0)
|
||||
{
|
||||
graphics.PrintWrap( -1, 90, loc::gettext("ERROR: No levels found."), tr, tg, tb, true);
|
||||
}
|
||||
int tmp=game.currentmenuoption+(game.levelpage*8);
|
||||
if(INBOUNDS_VEC(tmp, cl.ListOfMetaData)){
|
||||
if (INBOUNDS_VEC(tmp, cl.ListOfMetaData))
|
||||
{
|
||||
const bool nextlastoptions = cl.ListOfMetaData.size() > 8;
|
||||
//Don't show next/previous page or return to menu options here!
|
||||
if(nextlastoptions && game.menuoptions.size() - game.currentmenuoption<=3){
|
||||
if (nextlastoptions && game.menuoptions.size() - game.currentmenuoption<=3)
|
||||
{
|
||||
|
||||
}else{
|
||||
}
|
||||
else
|
||||
{
|
||||
uint32_t level_flags = PR_FONT_IDX(cl.ListOfMetaData[tmp].level_main_font_idx);
|
||||
uint32_t title_flags = cl.ListOfMetaData[tmp].title_is_gettext ? PR_FONT_INTERFACE : level_flags;
|
||||
uint32_t creator_flags = cl.ListOfMetaData[tmp].creator_is_gettext ? PR_FONT_INTERFACE : level_flags;
|
||||
|
|
Loading…
Reference in a new issue