1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-26 06:28:30 +02: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