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

Fix mixed indentation in Game.cpp and Game.h

This removes all indentation that suddenly switches in the middle of a
function. Most particularly egregious offenses are the ones made by the
person who has 2-wide tabs, but keeps tabbing up to make each
indentation level match up with the 4-wide spaces, so to them (and only
them) it will look just fine, but since by default tabstop is 8-wide,
their lines are pushed off all the way to the right.
This commit is contained in:
Misa 2020-04-02 13:01:55 -07:00 committed by Ethan Lee
parent 12d5433efc
commit 88c16cdae8
2 changed files with 278 additions and 278 deletions

View file

@ -39,72 +39,72 @@ const char* BoolToString(bool _b)
bool GetButtonFromString(const char *pText, SDL_GameControllerButton *button)
{
if ( *pText == '0' ||
if (*pText == '0' ||
*pText == 'a' ||
*pText == 'A' )
*pText == 'A')
{
*button = SDL_CONTROLLER_BUTTON_A;
return true;
}
if ( strcmp(pText, "1") == 0 ||
if (strcmp(pText, "1") == 0 ||
*pText == 'b' ||
*pText == 'B' )
*pText == 'B')
{
*button = SDL_CONTROLLER_BUTTON_B;
return true;
}
if ( *pText == '2' ||
if (*pText == '2' ||
*pText == 'x' ||
*pText == 'X' )
*pText == 'X')
{
*button = SDL_CONTROLLER_BUTTON_X;
return true;
}
if ( *pText == '3' ||
if (*pText == '3' ||
*pText == 'y' ||
*pText == 'Y' )
*pText == 'Y')
{
*button = SDL_CONTROLLER_BUTTON_Y;
return true;
}
if ( *pText == '4' ||
strcasecmp(pText, "BACK") == 0 )
if (*pText == '4' ||
strcasecmp(pText, "BACK") == 0)
{
*button = SDL_CONTROLLER_BUTTON_BACK;
return true;
}
if ( *pText == '5' ||
strcasecmp(pText, "GUIDE") == 0 )
if (*pText == '5' ||
strcasecmp(pText, "GUIDE") == 0)
{
*button = SDL_CONTROLLER_BUTTON_GUIDE;
return true;
}
if ( *pText == '6' ||
strcasecmp(pText, "START") == 0 )
if (*pText == '6' ||
strcasecmp(pText, "START") == 0)
{
*button = SDL_CONTROLLER_BUTTON_START;
return true;
}
if ( *pText == '7' ||
strcasecmp(pText, "LS") == 0 )
if (*pText == '7' ||
strcasecmp(pText, "LS") == 0)
{
*button = SDL_CONTROLLER_BUTTON_LEFTSTICK;
return true;
}
if ( *pText == '8' ||
strcasecmp(pText, "RS") == 0 )
if (*pText == '8' ||
strcasecmp(pText, "RS") == 0)
{
*button = SDL_CONTROLLER_BUTTON_RIGHTSTICK;
return true;
}
if ( *pText == '9' ||
strcasecmp(pText, "LB") == 0 )
if (*pText == '9' ||
strcasecmp(pText, "LB") == 0)
{
*button = SDL_CONTROLLER_BUTTON_LEFTSHOULDER;
return true;
}
if ( strcmp(pText, "10") == 0 ||
strcasecmp(pText, "RB") == 0 )
if (strcmp(pText, "10") == 0 ||
strcasecmp(pText, "RB") == 0)
{
*button = SDL_CONTROLLER_BUTTON_RIGHTSHOULDER;
return true;
@ -6763,7 +6763,7 @@ void Game::createmenu( std::string t )
if (t == "mainmenu")
{
#if defined(MAKEANDPLAY)
#if defined(MAKEANDPLAY)
menuoptions[0] = "player levels";
menuoptionsactive[0] = true;
menuoptions[1] = "graphic options";
@ -6775,7 +6775,7 @@ void Game::createmenu( std::string t )
nummenuoptions = 4;
menuxoff = -16;
menuyoff = -10;
#elif !defined(MAKEANDPLAY)
#elif !defined(MAKEANDPLAY)
#if defined(NO_CUSTOM_LEVELS)
menuoptions[0] = "start game";
menuoptionsactive[0] = true;
@ -6807,7 +6807,7 @@ void Game::createmenu( std::string t )
menuxoff = -16;
menuyoff = -10;
#endif
#endif
#endif
}
#if !defined(NO_CUSTOM_LEVELS)
else if (t == "playerworlds")
@ -7069,7 +7069,7 @@ void Game::createmenu( std::string t )
}
else if (t == "options")
{
#if defined(MAKEANDPLAY)
#if defined(MAKEANDPLAY)
menuoptions[0] = "accessibility options";
menuoptionsactive[0] = true;
menuoptions[1] = "game pad options";
@ -7081,7 +7081,7 @@ void Game::createmenu( std::string t )
nummenuoptions = 4;
menuxoff = -40;
menuyoff = 0;
#elif !defined(MAKEANDPLAY)
#elif !defined(MAKEANDPLAY)
menuoptions[0] = "accessibility options";
menuoptionsactive[0] = true;
menuoptions[1] = "unlock play modes";
@ -7096,7 +7096,7 @@ void Game::createmenu( std::string t )
nummenuoptions = 5;
menuxoff = -40;
menuyoff = 0;
#endif
#endif
}
else if (t == "accessibility")
{

View file

@ -123,10 +123,10 @@ public:
bool infocus;
bool muted;
int mutebutton;
private:
private:
float m_globalVol;
public:
public:
int tapleft, tapright;