mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Make credits accessible from the menu again
This commit is contained in:
parent
c89048def7
commit
0ecc7ccd54
3 changed files with 15 additions and 2 deletions
|
|
@ -902,9 +902,9 @@ boolean F_CreditResponder(event_t *event)
|
||||||
void F_StartGameEvaluation(void)
|
void F_StartGameEvaluation(void)
|
||||||
{
|
{
|
||||||
// Credits option in extras menu
|
// Credits option in extras menu
|
||||||
if (cursaveslot == -1)
|
if (grandprixinfo.gp == false)
|
||||||
{
|
{
|
||||||
S_FadeOutStopMusic(MUSICRATE/2);
|
S_FadeMusic(0, MUSICRATE/4);
|
||||||
F_StartGameEnd();
|
F_StartGameEnd();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1048,6 +1048,7 @@ typedef enum
|
||||||
extras_eggtv,
|
extras_eggtv,
|
||||||
extras_stereo,
|
extras_stereo,
|
||||||
extras_password,
|
extras_password,
|
||||||
|
extras_credits,
|
||||||
} extras_e;
|
} extras_e;
|
||||||
|
|
||||||
void M_InitExtras(INT32 choice); // init for the struct
|
void M_InitExtras(INT32 choice); // init for the struct
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,15 @@
|
||||||
#include "../m_cond.h"
|
#include "../m_cond.h"
|
||||||
#include "../m_cheat.h"
|
#include "../m_cheat.h"
|
||||||
#include "../s_sound.h"
|
#include "../s_sound.h"
|
||||||
|
#include "../f_finale.h"
|
||||||
|
|
||||||
|
static void M_Credits(INT32 choice)
|
||||||
|
{
|
||||||
|
(void)choice;
|
||||||
|
restoreMenu = currentMenu;
|
||||||
|
M_ClearMenus(true);
|
||||||
|
F_StartCredits();
|
||||||
|
}
|
||||||
|
|
||||||
menuitem_t EXTRAS_Main[] =
|
menuitem_t EXTRAS_Main[] =
|
||||||
{
|
{
|
||||||
|
|
@ -32,6 +41,9 @@ menuitem_t EXTRAS_Main[] =
|
||||||
|
|
||||||
{IT_STRING | IT_CVAR | IT_CV_STRING, "Password", "If you don't know any passwords, come back later!",
|
{IT_STRING | IT_CVAR | IT_CV_STRING, "Password", "If you don't know any passwords, come back later!",
|
||||||
NULL, {.cvar = &cv_dummyextraspassword}, 0, 0},
|
NULL, {.cvar = &cv_dummyextraspassword}, 0, 0},
|
||||||
|
|
||||||
|
{IT_STRING | IT_CALL, "Credits", "It's important to know who makes the video games you play.",
|
||||||
|
NULL, {.routine = M_Credits}, 0, 0},
|
||||||
};
|
};
|
||||||
|
|
||||||
// the extras menu essentially reuses the options menu stuff
|
// the extras menu essentially reuses the options menu stuff
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue