mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +00:00
Make rings 0 in competition winner selection if you gamed or timed over, and use the MAXSCORE macro instead of a hardcoded value.
This commit is contained in:
parent
16703a6752
commit
61262ad228
1 changed files with 4 additions and 1 deletions
|
|
@ -1622,11 +1622,14 @@ static void Y_CalculateCompetitionWinners(void)
|
||||||
for (j = 0; j < 5; j++)
|
for (j = 0; j < 5; j++)
|
||||||
bestat[j] = true;
|
bestat[j] = true;
|
||||||
|
|
||||||
|
if ((players[i].pflags & PF_GAMETYPEOVER) || players[i].lives <= 0)
|
||||||
|
players[i].rings = 0;
|
||||||
|
|
||||||
times[i] = players[i].realtime;
|
times[i] = players[i].realtime;
|
||||||
rings[i] = (UINT32)max(players[i].rings, 0);
|
rings[i] = (UINT32)max(players[i].rings, 0);
|
||||||
maxrings[i] = (UINT32)players[i].totalring;
|
maxrings[i] = (UINT32)players[i].totalring;
|
||||||
monitors[i] = (UINT32)players[i].numboxes;
|
monitors[i] = (UINT32)players[i].numboxes;
|
||||||
scores[i] = (UINT32)min(players[i].score, 99999990);
|
scores[i] = (UINT32)min(players[i].score, MAXSCORE);
|
||||||
|
|
||||||
for (j = 0; j < MAXPLAYERS; j++)
|
for (j = 0; j < MAXPLAYERS; j++)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue