From 04ab02476f9d7ad5108f5e3b6dd501c518c8b6f2 Mon Sep 17 00:00:00 2001 From: James R Date: Fri, 26 Jan 2024 17:54:27 -0800 Subject: [PATCH] Battle: "K.O. READY!" appears on your screen when you reach the point limit --- src/p_user.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/p_user.c b/src/p_user.c index 2ec456914..6f3205def 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -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; }