mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'its-ko-time' into 'master'
Battle: "K.O. READY!" appears on your screen when you reach the point limit Closes #979 See merge request KartKrew/Kart!1871
This commit is contained in:
commit
cf362c226f
1 changed files with 5 additions and 0 deletions
|
|
@ -583,7 +583,12 @@ void P_AddPlayerScore(player_t *player, INT32 amount)
|
|||
if (amount < 0 && (UINT32)-amount > player->roundscore)
|
||||
player->roundscore = 0;
|
||||
else if (player->roundscore + amount < MAXSCORE)
|
||||
{
|
||||
if (player->roundscore < g_pointlimit && g_pointlimit <= player->roundscore + amount)
|
||||
HU_DoTitlecardCEchoForDuration(player, "K.O. READY!", true, 5*TICRATE/2);
|
||||
|
||||
player->roundscore += amount;
|
||||
}
|
||||
else
|
||||
player->roundscore = MAXSCORE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue