mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-17 02:01:35 +00:00
remove some of the GS_TIMEATTACK hacks I added because I now realise I can just turn titlemapinaction off when entering the menus \o/
This commit is contained in:
parent
f6842a80b4
commit
a1e6f5bdb3
1 changed files with 4 additions and 2 deletions
|
@ -2302,7 +2302,7 @@ static boolean MIT_SetCurBackground(UINT32 menutype, INT32 level, INT32 *retval,
|
||||||
curbgyspeed = menupres[menutype].titlescrollyspeed != INT32_MAX ? menupres[menutype].titlescrollyspeed : titlescrollyspeed;
|
curbgyspeed = menupres[menutype].titlescrollyspeed != INT32_MAX ? menupres[menutype].titlescrollyspeed : titlescrollyspeed;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (gamestate != GS_TIMEATTACK && menupres[menutype].bghide && titlemapinaction) // hide the background
|
else if (menupres[menutype].bghide && titlemapinaction) // hide the background
|
||||||
{
|
{
|
||||||
curbghide = true;
|
curbghide = true;
|
||||||
return true;
|
return true;
|
||||||
|
@ -2311,7 +2311,7 @@ static boolean MIT_SetCurBackground(UINT32 menutype, INT32 level, INT32 *retval,
|
||||||
{
|
{
|
||||||
if (M_GetYoungestChildMenu() == MN_SP_PLAYER || !defaultname || !defaultname[0])
|
if (M_GetYoungestChildMenu() == MN_SP_PLAYER || !defaultname || !defaultname[0])
|
||||||
curbgcolor = 31;
|
curbgcolor = 31;
|
||||||
else if (gamestate != GS_TIMEATTACK && titlemapinaction) // hide the background by default in titlemap
|
else if (titlemapinaction) // hide the background by default in titlemap
|
||||||
curbghide = true;
|
curbghide = true;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -8236,6 +8236,7 @@ static void M_TimeAttack(INT32 choice)
|
||||||
M_PatchSkinNameTable();
|
M_PatchSkinNameTable();
|
||||||
|
|
||||||
G_SetGamestate(GS_TIMEATTACK); // do this before M_SetupNextMenu so that menu meta state knows that we're switching
|
G_SetGamestate(GS_TIMEATTACK); // do this before M_SetupNextMenu so that menu meta state knows that we're switching
|
||||||
|
titlemapinaction = TITLEMAP_OFF; // Nope don't give us HOMs please
|
||||||
M_SetupNextMenu(&SP_TimeAttackDef);
|
M_SetupNextMenu(&SP_TimeAttackDef);
|
||||||
if (!M_CanShowLevelInList(cv_nextmap.value-1, -1) && levelselect.rows[0].maplist[0])
|
if (!M_CanShowLevelInList(cv_nextmap.value-1, -1) && levelselect.rows[0].maplist[0])
|
||||||
CV_SetValue(&cv_nextmap, levelselect.rows[0].maplist[0]);
|
CV_SetValue(&cv_nextmap, levelselect.rows[0].maplist[0]);
|
||||||
|
@ -8417,6 +8418,7 @@ static void M_NightsAttack(INT32 choice)
|
||||||
|
|
||||||
G_SetGamestate(GS_TIMEATTACK); // do this before M_SetupNextMenu so that menu meta state knows that we're switching
|
G_SetGamestate(GS_TIMEATTACK); // do this before M_SetupNextMenu so that menu meta state knows that we're switching
|
||||||
M_SetupNextMenu(&SP_NightsAttackDef);
|
M_SetupNextMenu(&SP_NightsAttackDef);
|
||||||
|
titlemapinaction = TITLEMAP_OFF; // Nope don't give us HOMs please
|
||||||
if (!M_CanShowLevelInList(cv_nextmap.value-1, -1) && levelselect.rows[0].maplist[0])
|
if (!M_CanShowLevelInList(cv_nextmap.value-1, -1) && levelselect.rows[0].maplist[0])
|
||||||
CV_SetValue(&cv_nextmap, levelselect.rows[0].maplist[0]);
|
CV_SetValue(&cv_nextmap, levelselect.rows[0].maplist[0]);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue