mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 12:01:47 +00:00
Change participation criteria to count rounds
This commit is contained in:
parent
1e2d9a6b97
commit
44a0b5a00d
1 changed files with 18 additions and 1 deletions
|
|
@ -282,7 +282,24 @@ void SV_BumpMatchStats(void)
|
|||
|
||||
serverplayer_t *stat = SV_GetStatsByPlayerIndex(i);
|
||||
|
||||
if (!(players[i].pflags & PF_NOCONTEST))
|
||||
// It should never be advantageous to idle, only count rounds where the player accomplishes something.
|
||||
// If you NO CONTESTed, assume no participation...
|
||||
boolean participated = !(players[i].pflags & PF_NOCONTEST);
|
||||
|
||||
if (gametyperules & GTR_CIRCUIT)
|
||||
{
|
||||
// ...unless you completed at least one lap...
|
||||
if (players[i].laps > 1)
|
||||
participated = true;
|
||||
}
|
||||
else if (gametyperules & GTR_BUMPERS)
|
||||
{
|
||||
// ...or scored at least 2 points.
|
||||
if (players[i].roundscore > 1)
|
||||
participated = true;
|
||||
}
|
||||
|
||||
if (participated)
|
||||
stat->finishedrounds++;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue