mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Remove trailing whitespace from all files
Surprisingly, there's not a lot of it. There is, however, a lot of mixed indentation in this project.
This commit is contained in:
parent
6c6b6c68ff
commit
12d5433efc
6 changed files with 22 additions and 22 deletions
|
@ -4805,7 +4805,7 @@ bool entityclass::entitywarphlinecollide(int t, int l) {
|
|||
if (entities[t].oldyp < entities[l].yp + 10) linetemp++;
|
||||
if (entities[t].oldyp + entities[t].h < entities[l].yp + 10) linetemp++;
|
||||
}
|
||||
|
||||
|
||||
if (linetemp > 0) return true;
|
||||
return false;
|
||||
}else {
|
||||
|
@ -4816,7 +4816,7 @@ bool entityclass::entitywarphlinecollide(int t, int l) {
|
|||
if (entities[t].oldyp > entities[l].yp - 10) linetemp++;
|
||||
if (entities[t].oldyp + entities[t].h > entities[l].yp - 10) linetemp++;
|
||||
}
|
||||
|
||||
|
||||
if (linetemp > 0) return true;
|
||||
return false;
|
||||
}
|
||||
|
@ -4824,7 +4824,7 @@ bool entityclass::entitywarphlinecollide(int t, int l) {
|
|||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool entityclass::entitywarpvlinecollide(int t, int l) {
|
||||
//Returns true is entity t collided with the vertical warp line l.
|
||||
if(entities[t].yp + entities[t].cy+entities[t].h>=entities[l].yp){
|
||||
|
@ -4836,7 +4836,7 @@ bool entityclass::entitywarpvlinecollide(int t, int l) {
|
|||
if (entities[t].xp + entities[t].cx+1 + entities[t].w < entities[l].xp + 10) linetemp++;
|
||||
if (entities[t].oldxp + entities[t].cx + 1 < entities[l].xp + 10) linetemp++;
|
||||
if (entities[t].oldxp + entities[t].cx + 1 + entities[t].w < entities[l].xp + 10) linetemp++;
|
||||
|
||||
|
||||
if (linetemp > 0) return true;
|
||||
return false;
|
||||
}else {
|
||||
|
@ -4845,7 +4845,7 @@ bool entityclass::entitywarpvlinecollide(int t, int l) {
|
|||
if (entities[t].xp + entities[t].cx+1 + entities[t].w > entities[l].xp - 10) linetemp++;
|
||||
if (entities[t].oldxp + entities[t].cx + 1 > entities[l].xp - 10) linetemp++;
|
||||
if (entities[t].oldxp + entities[t].cx + 1 + entities[t].w > entities[l].xp - 10) linetemp++;
|
||||
|
||||
|
||||
if (linetemp > 0) return true;
|
||||
return false;
|
||||
}
|
||||
|
@ -5195,21 +5195,21 @@ void entityclass::hormovingplatformfix( int t )
|
|||
void entityclass::customwarplinecheck(int i) {
|
||||
//Turns on obj.customwarpmodevon and obj.customwarpmodehon if player collides
|
||||
//with warp lines
|
||||
|
||||
|
||||
if (entities[i].active) {
|
||||
//We test entity to entity
|
||||
for (int j = 0; j < nentity; j++) {
|
||||
if (entities[j].active && i != j) {//Active
|
||||
if (entities[i].rule == 0 && entities[j].rule == 5) { //Player vs vertical line!
|
||||
if (entities[j].type == 51 || entities[j].type == 52) {
|
||||
if (entitywarpvlinecollide(i, j)) {
|
||||
if (entities[j].type == 51 || entities[j].type == 52) {
|
||||
if (entitywarpvlinecollide(i, j)) {
|
||||
customwarpmodevon = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (entities[i].rule == 0 && entities[j].rule == 7){ //Player vs horizontal WARP line
|
||||
if (entities[j].type == 53 || entities[j].type == 54) {
|
||||
if (entities[j].type == 53 || entities[j].type == 54) {
|
||||
if (entitywarphlinecollide(i, j)) {
|
||||
customwarpmodehon = true;
|
||||
}
|
||||
|
|
|
@ -145,7 +145,7 @@ public:
|
|||
bool entityhlinecollide(int t, int l);
|
||||
|
||||
bool entityvlinecollide(int t, int l);
|
||||
|
||||
|
||||
bool entitywarphlinecollide(int t, int l);
|
||||
bool entitywarpvlinecollide(int t, int l);
|
||||
|
||||
|
|
|
@ -3264,7 +3264,7 @@ void Game::updatestate()
|
|||
NETWORK_unlockAchievement("vvvvvvcomplete50");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
savestats();
|
||||
if (nodeathmode)
|
||||
|
@ -4675,7 +4675,7 @@ void Game::savestats()
|
|||
msg->LinkEndChild( new TiXmlText( tu.String(fullScreenEffect_badSignal).c_str()));
|
||||
dataNode->LinkEndChild( msg );
|
||||
|
||||
|
||||
|
||||
msg = new TiXmlElement( "usingmmmmmm" );
|
||||
msg->LinkEndChild( new TiXmlText( tu.String(usingmmmmmm).c_str()));
|
||||
dataNode->LinkEndChild( msg );
|
||||
|
|
|
@ -230,7 +230,7 @@ void titleinput()
|
|||
{
|
||||
if (game.currentmenuname == "mainmenu")
|
||||
{
|
||||
|
||||
|
||||
#if defined(MAKEANDPLAY)
|
||||
if (game.currentmenuoption == 0)
|
||||
{
|
||||
|
@ -868,7 +868,7 @@ SDL_assert(0 && "Remove open level dir");
|
|||
}
|
||||
else if (game.currentmenuname == "options")
|
||||
{
|
||||
|
||||
|
||||
#if defined(MAKEANDPLAY)
|
||||
if (game.currentmenuoption == 0)
|
||||
{
|
||||
|
@ -877,7 +877,7 @@ SDL_assert(0 && "Remove open level dir");
|
|||
game.createmenu("accessibility");
|
||||
map.nexttowercolour();
|
||||
}
|
||||
|
||||
|
||||
else if (game.currentmenuoption == 1)
|
||||
{
|
||||
//clear data menu
|
||||
|
@ -925,7 +925,7 @@ SDL_assert(0 && "Remove open level dir");
|
|||
map.nexttowercolour();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#elif !defined(MAKEANDPLAY)
|
||||
if (game.currentmenuoption == 0)
|
||||
{
|
||||
|
@ -955,7 +955,7 @@ SDL_assert(0 && "Remove open level dir");
|
|||
game.createmenu("cleardatamenu");
|
||||
map.nexttowercolour();
|
||||
}
|
||||
|
||||
|
||||
if(music.mmmmmm){
|
||||
if (game.currentmenuoption == 4)
|
||||
{
|
||||
|
|
|
@ -1043,13 +1043,13 @@ void gamelogic()
|
|||
//warp lines for collision
|
||||
obj.customwarpmodehon = false;
|
||||
obj.customwarpmodevon = false;
|
||||
|
||||
|
||||
int i = obj.getplayer();
|
||||
if ((game.door_down > -2 && obj.entities[i].yp >= 226-16) || (game.door_up > -2 && obj.entities[i].yp < -2+16) || (game.door_left > -2 && obj.entities[i].xp < -14+16) || (game.door_right > -2 && obj.entities[i].xp >= 308-16)){
|
||||
//Player is leaving room
|
||||
obj.customwarplinecheck(i);
|
||||
}
|
||||
|
||||
|
||||
if(obj.customwarpmodehon){ map.warpy=true;
|
||||
}else{ map.warpy=false; }
|
||||
if(obj.customwarpmodevon){ map.warpx=true;
|
||||
|
|
|
@ -114,7 +114,7 @@ void titlerender()
|
|||
}
|
||||
else if (game.currentmenuname == "options")
|
||||
{
|
||||
|
||||
|
||||
#if defined(MAKEANDPLAY)
|
||||
if (game.currentmenuoption == 0)
|
||||
{
|
||||
|
@ -1122,7 +1122,7 @@ void titlerender()
|
|||
graphics.Print( -1, 125, "Your have unlocked", tr, tg, tb, true);
|
||||
graphics.Print( -1, 135, "the intermission levels.", tr, tg, tb, true);
|
||||
}else if (game.currentmenuname == "playerworlds")
|
||||
{
|
||||
{
|
||||
graphics.tempstring = FILESYSTEM_getUserLevelDirectory();
|
||||
if(graphics.tempstring.length()>80){
|
||||
graphics.Print( -1, 160, "To install new player levels, copy", tr, tg, tb, true);
|
||||
|
|
Loading…
Reference in a new issue