mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
last place can get points now
This commit is contained in:
parent
0369bc01fd
commit
0da0cf4909
2 changed files with 2 additions and 3 deletions
|
|
@ -60,7 +60,7 @@ INT16 K_CalculateGPRankPoints(UINT16 exp, UINT8 position, UINT8 numplayers)
|
||||||
{
|
{
|
||||||
INT16 points;
|
INT16 points;
|
||||||
|
|
||||||
if (position >= numplayers || position == 0)
|
if (position > numplayers || position == 0)
|
||||||
{
|
{
|
||||||
// Invalid position, no points
|
// Invalid position, no points
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
|
|
@ -295,8 +295,7 @@ static void Y_CalculateMatchData(UINT8 rankingsmode, void (*comparison)(INT32))
|
||||||
{
|
{
|
||||||
UINT8 pointgetters = numplayersingame + spectateGriefed;
|
UINT8 pointgetters = numplayersingame + spectateGriefed;
|
||||||
|
|
||||||
if (data.pos[data.numplayers] < pointgetters
|
if (data.pos[data.numplayers] <= pointgetters)
|
||||||
&& !(players[i].pflags & PF_NOCONTEST))
|
|
||||||
{
|
{
|
||||||
data.increase[i] = K_CalculateGPRankPoints((&players[i])->exp, data.pos[data.numplayers], pointgetters);
|
data.increase[i] = K_CalculateGPRankPoints((&players[i])->exp, data.pos[data.numplayers], pointgetters);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue