mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
K_PlayerFinishGrandPrix: Cap RINGTOTAL to 20 when writing to totalring and grandprixinfo rank
Permitted 109/100 rings at the end of GP !?
This commit is contained in:
parent
4387ea2f71
commit
782da8c325
1 changed files with 6 additions and 3 deletions
|
|
@ -815,10 +815,13 @@ void K_PlayerFinishGrandPrix(player_t *player)
|
||||||
grandprixinfo.wonround = true;
|
grandprixinfo.wonround = true;
|
||||||
|
|
||||||
// Increase your total rings
|
// Increase your total rings
|
||||||
if (RINGTOTAL(player) > 0)
|
INT32 ringtotal = RINGTOTAL(player);
|
||||||
|
if (ringtotal > 0)
|
||||||
{
|
{
|
||||||
player->totalring += RINGTOTAL(player);
|
if (ringtotal > 20)
|
||||||
grandprixinfo.rank.rings += RINGTOTAL(player);
|
ringtotal = 20;
|
||||||
|
player->totalring += ringtotal;
|
||||||
|
grandprixinfo.rank.rings += ringtotal;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (grandprixinfo.eventmode == GPEVENT_NONE)
|
if (grandprixinfo.eventmode == GPEVENT_NONE)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue