mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-05 01:38:13 +00:00
Don't use Auto Gear in Match Race
This commit is contained in:
parent
fd10662b29
commit
f7b98451ad
1 changed files with 12 additions and 12 deletions
|
|
@ -664,7 +664,7 @@ void M_LevelSelectInit(INT32 choice)
|
|||
{
|
||||
CV_StealthSet(&cv_kartbot, cv_dummymatchbots.string);
|
||||
CV_StealthSet(&cv_kartencore, (cv_dummygpencore.value == 1) ? "On" : "Auto");
|
||||
CV_StealthSet(&cv_kartspeed, (cv_dummykartspeed.value == KARTSPEED_NORMAL) ? "Auto Gear" : cv_dummykartspeed.string);
|
||||
CV_StealthSet(&cv_kartspeed, cv_dummykartspeed.string);
|
||||
}
|
||||
|
||||
break;
|
||||
|
|
@ -832,9 +832,9 @@ void M_LevelSelected(INT16 add, boolean menuupdate)
|
|||
static void M_MenuQueueStopSend(INT32 ch)
|
||||
{
|
||||
(void)ch;
|
||||
|
||||
|
||||
memset(&menuqueue, 0, sizeof(struct menuqueue));
|
||||
|
||||
|
||||
menuqueue.clearing = false;
|
||||
}
|
||||
|
||||
|
|
@ -914,13 +914,13 @@ void M_CupQueueHandler(cupheader_t *cup)
|
|||
UINT8 bonusmodulo = max(1, (cup->numlevels+1)/(cup->numbonus+1));
|
||||
UINT16 cupLevelNum;
|
||||
INT32 gtcheck;
|
||||
|
||||
|
||||
// We shouldn't get to this point while there's rounds queued, but if we do, get outta there.
|
||||
if (roundqueue.size)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
menuqueue.size = 0;
|
||||
|
||||
// Levels are added to the queue in the following pattern.
|
||||
|
|
@ -931,7 +931,7 @@ void M_CupQueueHandler(cupheader_t *cup)
|
|||
while (levelindex < cup->numlevels)
|
||||
{
|
||||
memset(menuqueue.entries+menuqueue.size, 0, sizeof(roundentry_t));
|
||||
|
||||
|
||||
// Fill like two or three Race maps.
|
||||
for (i = 0; i < bonusmodulo; i++)
|
||||
{
|
||||
|
|
@ -942,7 +942,7 @@ void M_CupQueueHandler(cupheader_t *cup)
|
|||
// Just skip the map if it's invalid.
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
if ((mapheaderinfo[cupLevelNum]->typeoflevel & TOL_RACE) == TOL_RACE)
|
||||
{
|
||||
gtcheck = GT_RACE;
|
||||
|
|
@ -955,7 +955,7 @@ void M_CupQueueHandler(cupheader_t *cup)
|
|||
menuqueue.entries[menuqueue.size].mapnum = cupLevelNum;
|
||||
menuqueue.entries[menuqueue.size].gametype = gtcheck;
|
||||
menuqueue.entries[menuqueue.size].encore = (cv_kartencore.value == 1);
|
||||
|
||||
|
||||
menuqueue.size++;
|
||||
|
||||
levelindex++;
|
||||
|
|
@ -984,7 +984,7 @@ void M_CupQueueHandler(cupheader_t *cup)
|
|||
menuqueue.entries[menuqueue.size].mapnum = cupLevelNum;
|
||||
menuqueue.entries[menuqueue.size].gametype = gtcheck;
|
||||
menuqueue.entries[menuqueue.size].encore = (cv_kartencore.value == 1);
|
||||
|
||||
|
||||
menuqueue.size++;
|
||||
}
|
||||
|
||||
|
|
@ -1094,7 +1094,7 @@ static void M_MenuQueueResponse(INT32 ch)
|
|||
void M_LevelConfirmHandler(void)
|
||||
{
|
||||
// Starting immediately OR importing queue
|
||||
|
||||
|
||||
while ((menuqueue.size + roundqueue.size) > ROUNDQUEUE_MAX)
|
||||
menuqueue.size--;
|
||||
|
||||
|
|
@ -1134,7 +1134,7 @@ static void M_ClearQueueResponse(INT32 ch)
|
|||
return;
|
||||
|
||||
S_StartSound(NULL, sfx_slip);
|
||||
|
||||
|
||||
if (!netgame)
|
||||
memset(&roundqueue, 0, sizeof(struct roundqueue));
|
||||
if (netgame && (roundqueue.size != 0))
|
||||
|
|
@ -1297,7 +1297,7 @@ void M_LevelSelectTick(void)
|
|||
|
||||
if (!menuqueue.sending)
|
||||
return;
|
||||
|
||||
|
||||
if ((menuqueue.sending <= menuqueue.size) // Sending
|
||||
&& (roundqueue.size >= menuqueue.anchor)) // Didn't get it wiped
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue