mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Battle: last player standing gets 100 points
This commit is contained in:
parent
1e916dee77
commit
9cd426dd3d
1 changed files with 12 additions and 0 deletions
|
|
@ -122,6 +122,7 @@ void K_CheckBumpers(void)
|
|||
UINT8 numingame = 0;
|
||||
UINT8 nobumpers = 0;
|
||||
UINT8 eliminated = 0;
|
||||
SINT8 kingofthehill = -1;
|
||||
|
||||
if (!(gametyperules & GTR_BUMPERS))
|
||||
return;
|
||||
|
|
@ -148,6 +149,10 @@ void K_CheckBumpers(void)
|
|||
{
|
||||
eliminated++;
|
||||
}
|
||||
else
|
||||
{
|
||||
kingofthehill = i;
|
||||
}
|
||||
}
|
||||
|
||||
if (numingame - eliminated == 2 && battleovertime.enabled && battleovertime.radius <= BARRIER_MIN_RADIUS)
|
||||
|
|
@ -166,6 +171,13 @@ void K_CheckBumpers(void)
|
|||
}
|
||||
else if (eliminated >= numingame - 1)
|
||||
{
|
||||
if (kingofthehill != -1)
|
||||
{
|
||||
// If every other player is eliminated, the
|
||||
// last player standing wins by default.
|
||||
players[kingofthehill].roundscore = 100;
|
||||
}
|
||||
|
||||
P_DoAllPlayersExit(0, false);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue