Rank 1 Master always enters Sealed Star

This commit is contained in:
AJ Martinez 2023-10-22 16:49:31 -07:00
parent 9c585e35de
commit e2e022dd6a
2 changed files with 13 additions and 0 deletions

View file

@ -3803,6 +3803,11 @@ void G_GetNextMap(void)
{
// On A rank pace? Then you get a chance for S rank!
permitrank = (K_CalculateGPGrade(&grandprixinfo.rank) >= GRADE_A);
// If you're on Master, a win floats you to rank-restricted levels for free.
// (This is a different class of challenge!)
if (grandprixinfo.masterbots && grandprixinfo.rank.position <= 1)
permitrank = true;
}
while (roundqueue.position < roundqueue.size

View file

@ -306,6 +306,14 @@ static void Y_CalculateMatchData(UINT8 rankingsmode, void (*comparison)(INT32))
* (2 * TICRATE)
) / GRADE_A;
// G_NextMap will float you to rank-restricted stages on Master wins.
// Fudge the rank display.
if (grandprixinfo.masterbots && grandprixinfo.rank.position <= 1)
{
data.showrank = true;
data.linemeter = 2*TICRATE;
}
// A little extra time to take it all in
timer += TICRATE;
}