last place can get points now

This commit is contained in:
Ashnal 2025-10-06 18:16:03 -04:00
parent 0369bc01fd
commit 0da0cf4909
2 changed files with 2 additions and 3 deletions

View file

@ -60,7 +60,7 @@ INT16 K_CalculateGPRankPoints(UINT16 exp, UINT8 position, UINT8 numplayers)
{
INT16 points;
if (position >= numplayers || position == 0)
if (position > numplayers || position == 0)
{
// Invalid position, no points
return 0;

View file

@ -295,8 +295,7 @@ static void Y_CalculateMatchData(UINT8 rankingsmode, void (*comparison)(INT32))
{
UINT8 pointgetters = numplayersingame + spectateGriefed;
if (data.pos[data.numplayers] < pointgetters
&& !(players[i].pflags & PF_NOCONTEST))
if (data.pos[data.numplayers] <= pointgetters)
{
data.increase[i] = K_CalculateGPRankPoints((&players[i])->exp, data.pos[data.numplayers], pointgetters);