mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-02-07 17:34:16 +03:00
Fix mixed indentation in Input.cpp
There is a lot to be had for this one.
This commit is contained in:
@@ -231,7 +231,7 @@ void titleinput()
|
||||
if (game.currentmenuname == "mainmenu")
|
||||
{
|
||||
|
||||
#if defined(MAKEANDPLAY)
|
||||
#if defined(MAKEANDPLAY)
|
||||
if (game.currentmenuoption == 0)
|
||||
{
|
||||
//Bring you to the normal playmenu
|
||||
@@ -270,7 +270,7 @@ void titleinput()
|
||||
graphics.fademode = 2;
|
||||
}
|
||||
}
|
||||
#elif !defined(MAKEANDPLAY)
|
||||
#elif !defined(MAKEANDPLAY)
|
||||
#if defined(NO_CUSTOM_LEVELS)
|
||||
if (game.currentmenuoption == 0)
|
||||
{
|
||||
@@ -390,8 +390,8 @@ void titleinput()
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
#if !defined(NO_CUSTOM_LEVELS)
|
||||
#endif
|
||||
#if !defined(NO_CUSTOM_LEVELS)
|
||||
else if(game.currentmenuname=="levellist")
|
||||
{
|
||||
if(game.currentmenuoption==game.nummenuoptions-1){
|
||||
@@ -429,7 +429,7 @@ void titleinput()
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
else if(game.currentmenuname=="quickloadlevel")
|
||||
{
|
||||
if(game.currentmenuoption==0){//continue save
|
||||
@@ -445,7 +445,7 @@ void titleinput()
|
||||
map.nexttowercolour();
|
||||
}
|
||||
}
|
||||
#if !defined(NO_CUSTOM_LEVELS)
|
||||
#if !defined(NO_CUSTOM_LEVELS)
|
||||
else if(game.currentmenuname=="playerworlds")
|
||||
{
|
||||
#if !defined(NO_EDITOR)
|
||||
@@ -471,7 +471,7 @@ void titleinput()
|
||||
//This code should:
|
||||
// - Minimise the game
|
||||
// - Open the levels folder for whatever operating system we're on
|
||||
SDL_assert(0 && "Remove open level dir");
|
||||
SDL_assert(0 && "Remove open level dir");
|
||||
|
||||
}*/else if(game.currentmenuoption==2){
|
||||
//back
|
||||
@@ -495,7 +495,7 @@ SDL_assert(0 && "Remove open level dir");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
else if(game.currentmenuname=="errornostart"){
|
||||
music.playef(11);
|
||||
game.createmenu("mainmenu");
|
||||
@@ -843,19 +843,19 @@ SDL_assert(0 && "Remove open level dir");
|
||||
|
||||
//Add extra menu for mmmmmm mod
|
||||
if(music.mmmmmm){
|
||||
#if defined(MAKEANDPLAY)
|
||||
#if defined(MAKEANDPLAY)
|
||||
game.menuoptions[3] = "soundtrack";
|
||||
game.menuoptionsactive[3] = true;
|
||||
game.menuoptions[4] = "return";
|
||||
game.menuoptionsactive[4] = true;
|
||||
game.nummenuoptions = 5;
|
||||
#elif !defined(MAKEANDPLAY)
|
||||
#elif !defined(MAKEANDPLAY)
|
||||
game.menuoptions[4] = "soundtrack";
|
||||
game.menuoptionsactive[4] = true;
|
||||
game.menuoptions[5] = "return";
|
||||
game.menuoptionsactive[5] = true;
|
||||
game.nummenuoptions = 6;
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
map.nexttowercolour();
|
||||
@@ -869,7 +869,7 @@ SDL_assert(0 && "Remove open level dir");
|
||||
else if (game.currentmenuname == "options")
|
||||
{
|
||||
|
||||
#if defined(MAKEANDPLAY)
|
||||
#if defined(MAKEANDPLAY)
|
||||
if (game.currentmenuoption == 0)
|
||||
{
|
||||
//accessibility options
|
||||
@@ -926,7 +926,7 @@ SDL_assert(0 && "Remove open level dir");
|
||||
}
|
||||
}
|
||||
|
||||
#elif !defined(MAKEANDPLAY)
|
||||
#elif !defined(MAKEANDPLAY)
|
||||
if (game.currentmenuoption == 0)
|
||||
{
|
||||
//accessibility options
|
||||
@@ -988,7 +988,7 @@ SDL_assert(0 && "Remove open level dir");
|
||||
map.nexttowercolour();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
else if (game.currentmenuname == "unlockmenutrials")
|
||||
{
|
||||
@@ -1431,19 +1431,19 @@ SDL_assert(0 && "Remove open level dir");
|
||||
|
||||
//Add extra menu for mmmmmm mod
|
||||
if(music.mmmmmm){
|
||||
#if defined(MAKEANDPLAY)
|
||||
#if defined(MAKEANDPLAY)
|
||||
game.menuoptions[3] = "soundtrack";
|
||||
game.menuoptionsactive[3] = true;
|
||||
game.menuoptions[4] = "return";
|
||||
game.menuoptionsactive[4] = true;
|
||||
game.nummenuoptions = 5;
|
||||
#elif !defined(MAKEANDPLAY)
|
||||
#elif !defined(MAKEANDPLAY)
|
||||
game.menuoptions[4] = "soundtrack";
|
||||
game.menuoptionsactive[4] = true;
|
||||
game.menuoptions[5] = "return";
|
||||
game.menuoptionsactive[5] = true;
|
||||
game.nummenuoptions = 6;
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1457,19 +1457,19 @@ SDL_assert(0 && "Remove open level dir");
|
||||
|
||||
//Add extra menu for mmmmmm mod
|
||||
if(music.mmmmmm){
|
||||
#if defined(MAKEANDPLAY)
|
||||
#if defined(MAKEANDPLAY)
|
||||
game.menuoptions[3] = "soundtrack";
|
||||
game.menuoptionsactive[3] = true;
|
||||
game.menuoptions[4] = "return";
|
||||
game.menuoptionsactive[4] = true;
|
||||
game.nummenuoptions = 5;
|
||||
#elif !defined(MAKEANDPLAY)
|
||||
#elif !defined(MAKEANDPLAY)
|
||||
game.menuoptions[4] = "soundtrack";
|
||||
game.menuoptionsactive[4] = true;
|
||||
game.menuoptions[5] = "return";
|
||||
game.menuoptionsactive[5] = true;
|
||||
game.nummenuoptions = 6;
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
map.nexttowercolour();
|
||||
}
|
||||
@@ -2400,13 +2400,13 @@ void mapinput()
|
||||
|
||||
if (game.roomx >= 102 && game.roomx <= 104 && game.roomy >= 110 && game.roomy <= 111) game.savearea = "The Ship";
|
||||
|
||||
#if !defined(NO_CUSTOM_LEVELS)
|
||||
#if !defined(NO_CUSTOM_LEVELS)
|
||||
if(map.custommodeforreal)
|
||||
{
|
||||
game.customsavequick(ed.ListOfMetaData[game.playcustomlevel].filename);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
#endif
|
||||
{
|
||||
game.savequick();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user