mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
M_GamestateCanOpenMenu
This commit is contained in:
parent
4d19b127c3
commit
4011c8b2fa
1 changed files with 20 additions and 3 deletions
|
|
@ -201,6 +201,23 @@ boolean M_PrevOpt(void)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static boolean M_GamestateCanOpenMenu(void)
|
||||||
|
{
|
||||||
|
switch (gamestate)
|
||||||
|
{
|
||||||
|
case GS_INTRO:
|
||||||
|
case GS_CUTSCENE:
|
||||||
|
case GS_GAMEEND:
|
||||||
|
case GS_CREDITS:
|
||||||
|
case GS_EVALUATION:
|
||||||
|
case GS_CEREMONY:
|
||||||
|
return false;
|
||||||
|
|
||||||
|
default:
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// M_Responder
|
// M_Responder
|
||||||
//
|
//
|
||||||
|
|
@ -208,9 +225,9 @@ boolean M_Responder(event_t *ev)
|
||||||
{
|
{
|
||||||
menuKey = -1;
|
menuKey = -1;
|
||||||
|
|
||||||
if (dedicated || (demo.playback && demo.title)
|
if (dedicated
|
||||||
|| gamestate == GS_INTRO || gamestate == GS_CUTSCENE || gamestate == GS_GAMEEND
|
|| (demo.playback && demo.title)
|
||||||
|| gamestate == GS_CREDITS || gamestate == GS_EVALUATION)
|
|| M_GamestateCanOpenMenu() == false)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue