mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-02 14:12:47 +00:00
You can start GP from the new menu
This commit is contained in:
parent
3e36e15628
commit
09bebbc558
1 changed files with 46 additions and 10 deletions
|
|
@ -48,6 +48,7 @@
|
|||
#include "k_kart.h" // SRB2kart
|
||||
#include "d_player.h" // KITEM_ constants
|
||||
#include "doomstat.h" // MAXSPLITSCREENPLAYERS
|
||||
#include "k_grandprix.h" // MAXSPLITSCREENPLAYERS
|
||||
|
||||
#include "i_joy.h" // for joystick menu controls
|
||||
|
||||
|
|
@ -2066,10 +2067,10 @@ void M_LevelSelectInit(INT32 choice)
|
|||
cupgrid.grandprix = false;
|
||||
levellist.timeattack = true;
|
||||
break;
|
||||
/*case 2:
|
||||
case 2:
|
||||
cupgrid.grandprix = true;
|
||||
levellist.timeattack = false;
|
||||
break;*/
|
||||
break;
|
||||
default:
|
||||
CONS_Alert(CONS_WARNING, "Bad level select init\n");
|
||||
return;
|
||||
|
|
@ -2173,6 +2174,39 @@ void M_CupSelectHandler(INT32 choice)
|
|||
break;
|
||||
}
|
||||
|
||||
if (cupgrid.grandprix == true)
|
||||
{
|
||||
// Early fadeout to let the sound finish playing
|
||||
F_WipeStartScreen();
|
||||
V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, 31);
|
||||
F_WipeEndScreen();
|
||||
F_RunWipe(wipedefs[wipe_level_toblack], false, "FADEMAP0", false, false);
|
||||
|
||||
M_ClearMenus(true);
|
||||
|
||||
memset(&grandprixinfo, 0, sizeof(struct grandprixinfo));
|
||||
|
||||
// TODO: game settings screen
|
||||
grandprixinfo.gamespeed = KARTSPEED_NORMAL;
|
||||
grandprixinfo.masterbots = false;
|
||||
grandprixinfo.encore = false;
|
||||
|
||||
grandprixinfo.cup = newcup;
|
||||
|
||||
grandprixinfo.gp = true;
|
||||
grandprixinfo.roundnum = 1;
|
||||
grandprixinfo.initalize = true;
|
||||
|
||||
G_DeferedInitNew(
|
||||
false,
|
||||
G_BuildMapName(grandprixinfo.cup->levellist[0] + 1),
|
||||
(UINT8)cv_skin.value,
|
||||
(UINT8)(cv_splitplayers.value - 1),
|
||||
false
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Keep cursor position if you select the same cup again, reset if it's a different cup
|
||||
if (!levellist.selectedcup || newcup->id != levellist.selectedcup->id)
|
||||
{
|
||||
|
|
@ -2184,6 +2218,8 @@ void M_CupSelectHandler(INT32 choice)
|
|||
levellist.y = levellist.dest;
|
||||
|
||||
M_SetupNextMenu(&PLAY_LevelSelectDef, false);
|
||||
}
|
||||
|
||||
S_StartSound(NULL, sfx_s3k63);
|
||||
break;
|
||||
case KEY_ESCAPE:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue