K_CalculateGPGrade: Do not penalise for a cup that has no Prisons/Laps at all, so Sealed Star can be reached with numlaps 0/custom Cup with no battle levels

This commit is contained in:
toaster 2023-05-30 00:41:28 +01:00
parent 5e76ea6f8f
commit f9b1bdf2bc

View file

@ -360,8 +360,8 @@ gp_rank_e K_CalculateGPGrade(gpRank_t *rankData)
const INT32 positionWeight = 150;
const INT32 pointsWeight = 100;
const INT32 lapsWeight = 100;
const INT32 prisonsWeight = 100;
const INT32 lapsWeight = (rankData->totalLaps > 0) ? 100 : 0;
const INT32 prisonsWeight = (rankData->totalPrisons > 0) ? 100 : 0;
const INT32 ringsWeight = 50;
const INT32 total = positionWeight + pointsWeight + lapsWeight + prisonsWeight + ringsWeight;
const INT32 continuesPenalty = 20;