mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59: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:
parent
bda92ad0bd
commit
a1957fa518
4 changed files with 0 additions and 25 deletions
|
@ -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;
|
||||
|
|
|
@ -2379,7 +2379,6 @@ void mapmenuactionpress()
|
|||
{
|
||||
game.createmenu(Menu::options);
|
||||
}
|
||||
map.bg_to_kludge();
|
||||
game.kludge_ingametemp = game.currentmenuname;
|
||||
|
||||
graphics.titlebg.scrolldir = 0;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue