mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 19:01:50 +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)
|
if (amount < 0 && (UINT32)-amount > player->roundscore)
|
||||||
player->roundscore = 0;
|
player->roundscore = 0;
|
||||||
else if (player->roundscore + amount < MAXSCORE)
|
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;
|
player->roundscore += amount;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
player->roundscore = MAXSCORE;
|
player->roundscore = MAXSCORE;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue