mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Merge branch 'tally-idle-exp-grade-fix' into 'master'
Fixes grading for 0 EXP finishes See merge request kart-krew-dev/ring-racers-internal!2973
This commit is contained in:
commit
b9df8963cd
1 changed files with 3 additions and 6 deletions
|
|
@ -345,13 +345,10 @@ void level_tally_t::Init(player_t *player)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((gametypes[gt]->rules & GTR_CIRCUIT) == GTR_CIRCUIT)
|
if ((gametypes[gt]->rules & GTR_CIRCUIT) == GTR_CIRCUIT && K_GetNumGradingPoints() > 0) // EXP should be a rule type, but here we are
|
||||||
{
|
{
|
||||||
if (player->exp)
|
exp = static_cast<UINT16>(std::max<fixed_t>(player->exp, 0)); // The scoring calc doesn't subtract anymore, so using 0 is okay and will not wrap
|
||||||
{
|
totalExp = EXP_TARGET;
|
||||||
exp = player->exp;
|
|
||||||
totalExp = EXP_TARGET;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (battleprisons)
|
if (battleprisons)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue