mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-14 13:51:31 +00:00
If the game becomes modified during a record attack run, end it
RA menu can be opened if the game is modified, but Start can't be selected. (Obvious reason: so scripts to display info can be used easier) Fixed the stupid background for messages in the Record Attack menu, it was bugging me
This commit is contained in:
parent
0fc848dc09
commit
44df9358dd
2 changed files with 13 additions and 4 deletions
|
@ -711,6 +711,10 @@ void G_SetGameModified(boolean silent)
|
||||||
|
|
||||||
if (!silent)
|
if (!silent)
|
||||||
CONS_Alert(CONS_NOTICE, M_GetText("Game must be restarted to record statistics.\n"));
|
CONS_Alert(CONS_NOTICE, M_GetText("Game must be restarted to record statistics.\n"));
|
||||||
|
|
||||||
|
// If in record attack recording, cancel it.
|
||||||
|
if (modeattacking)
|
||||||
|
M_EndModeAttackRun();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Builds an original game map name from a map number.
|
/** Builds an original game map name from a map number.
|
||||||
|
|
13
src/m_menu.c
13
src/m_menu.c
|
@ -705,7 +705,7 @@ static menuitem_t SP_TimeAttackMenu[] =
|
||||||
{IT_DISABLED, NULL, "Guest Option...", &SP_GuestReplayDef, 100},
|
{IT_DISABLED, NULL, "Guest Option...", &SP_GuestReplayDef, 100},
|
||||||
{IT_DISABLED, NULL, "Replay...", &SP_ReplayDef, 110},
|
{IT_DISABLED, NULL, "Replay...", &SP_ReplayDef, 110},
|
||||||
{IT_DISABLED, NULL, "Ghosts...", &SP_GhostDef, 120},
|
{IT_DISABLED, NULL, "Ghosts...", &SP_GhostDef, 120},
|
||||||
{IT_WHITESTRING|IT_CALL, NULL, "Start", M_ChooseTimeAttack, 130},
|
{IT_WHITESTRING|IT_CALL|IT_CALL_NOTMODIFIED, NULL, "Start", M_ChooseTimeAttack, 130},
|
||||||
};
|
};
|
||||||
|
|
||||||
enum
|
enum
|
||||||
|
@ -797,7 +797,7 @@ static menuitem_t SP_NightsAttackMenu[] =
|
||||||
{IT_DISABLED, NULL, "Guest Option...", &SP_NightsGuestReplayDef, 108},
|
{IT_DISABLED, NULL, "Guest Option...", &SP_NightsGuestReplayDef, 108},
|
||||||
{IT_DISABLED, NULL, "Replay...", &SP_NightsReplayDef, 118},
|
{IT_DISABLED, NULL, "Replay...", &SP_NightsReplayDef, 118},
|
||||||
{IT_DISABLED, NULL, "Ghosts...", &SP_NightsGhostDef, 128},
|
{IT_DISABLED, NULL, "Ghosts...", &SP_NightsGhostDef, 128},
|
||||||
{IT_WHITESTRING|IT_CALL, NULL, "Start", M_ChooseNightsAttack, 138},
|
{IT_WHITESTRING|IT_CALL|IT_CALL_NOTMODIFIED, NULL, "Start", M_ChooseNightsAttack, 138},
|
||||||
};
|
};
|
||||||
|
|
||||||
enum
|
enum
|
||||||
|
@ -3702,6 +3702,11 @@ static void M_DrawMessageMenu(void)
|
||||||
|
|
||||||
mlines = currentMenu->lastOn>>8;
|
mlines = currentMenu->lastOn>>8;
|
||||||
max = (INT16)((UINT8)(currentMenu->lastOn & 0xFF)*8);
|
max = (INT16)((UINT8)(currentMenu->lastOn & 0xFF)*8);
|
||||||
|
|
||||||
|
// hack: draw RA background in RA menus
|
||||||
|
if (gamestate == GS_TIMEATTACK)
|
||||||
|
V_DrawPatchFill(W_CachePatchName("SRB2BACK", PU_CACHE));
|
||||||
|
|
||||||
M_DrawTextBox(currentMenu->x, y - 8, (max+7)>>3, mlines);
|
M_DrawTextBox(currentMenu->x, y - 8, (max+7)>>3, mlines);
|
||||||
|
|
||||||
while (*(msg+start))
|
while (*(msg+start))
|
||||||
|
@ -4310,9 +4315,9 @@ static void M_SinglePlayerMenu(INT32 choice)
|
||||||
{
|
{
|
||||||
(void)choice;
|
(void)choice;
|
||||||
SP_MainMenu[sprecordattack].status =
|
SP_MainMenu[sprecordattack].status =
|
||||||
(M_SecretUnlocked(SECRET_RECORDATTACK)) ? IT_CALL|IT_STRING|IT_CALL_NOTMODIFIED : IT_SECRET;
|
(M_SecretUnlocked(SECRET_RECORDATTACK)) ? IT_CALL|IT_STRING : IT_SECRET;
|
||||||
SP_MainMenu[spnightsmode].status =
|
SP_MainMenu[spnightsmode].status =
|
||||||
(M_SecretUnlocked(SECRET_NIGHTSMODE)) ? IT_CALL|IT_STRING|IT_CALL_NOTMODIFIED : IT_SECRET;
|
(M_SecretUnlocked(SECRET_NIGHTSMODE)) ? IT_CALL|IT_STRING : IT_SECRET;
|
||||||
|
|
||||||
M_SetupNextMenu(&SP_MainDef);
|
M_SetupNextMenu(&SP_MainDef);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue