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

Remove kludge_to_bg() and bg_to_kludge()

Now that tower, title, and horizontal/veritcal warp backgrounds all use
separate buffers, there's no longer any need to temporarily store
variables as a workaround for the buffers stepping on each other.
This commit is contained in:
Misa 2020-11-02 16:55:15 -08:00 committed by Ethan Lee
parent bda92ad0bd
commit a1957fa518
4 changed files with 0 additions and 25 deletions

View file

@ -7232,7 +7232,6 @@ void Game::returntopausemenu()
ingame_titlemode = false;
returntomenu(kludge_ingametemp);
gamestate = MAPMODE;
map.kludge_to_bg();
graphics.titlebg.tdrawback = true;
graphics.backgrounddrawn = false;
mapheld = true;

View file

@ -2379,7 +2379,6 @@ void mapmenuactionpress()
{
game.createmenu(Menu::options);
}
map.bg_to_kludge();
game.kludge_ingametemp = game.currentmenuname;
graphics.titlebg.scrolldir = 0;

View file

@ -87,9 +87,6 @@ mapclass::mapclass()
cameraseek = 0;
minitowermode = false;
roomtexton = false;
kludge_bypos = 0;
kludge_colstate = 0;
kludge_scrolldir = 0;
}
//Areamap starts at 100,100 and extends 20x20
@ -2109,17 +2106,3 @@ void mapclass::twoframedelayfix()
script.dontrunnextframe = true;
}
}
void mapclass::bg_to_kludge()
{
kludge_bypos = graphics.towerbg.bypos;
kludge_colstate = graphics.towerbg.colstate;
kludge_scrolldir = graphics.towerbg.scrolldir;
}
void mapclass::kludge_to_bg()
{
graphics.towerbg.bypos = kludge_bypos;
graphics.towerbg.colstate = kludge_colstate;
graphics.towerbg.scrolldir = kludge_scrolldir;
}

View file

@ -165,12 +165,6 @@ public:
//Map cursor
int cursorstate, cursordelay;
int kludge_bypos;
int kludge_colstate;
int kludge_scrolldir;
void bg_to_kludge();
void kludge_to_bg();
};
#ifndef MAP_DEFINITION