From 3196face09fe1b91cc48209a5b9c8b0fba76dd0a Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 25 Feb 2026 17:43:08 +0100 Subject: [PATCH] add comment about K_KartUpdatePosition --- src/k_kart.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/k_kart.c b/src/k_kart.c index 22b28ae82..3a77a4f44 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -6257,6 +6257,13 @@ void K_KartUpdatePosition(player_t *player) } } + // the player should NOT be checked against themselves! lol + // otherwise prevcheck will effectively be halved + // sadly this stuff is exposed to lua and atleast one script uses those so we cant fix it + // oh well + //if (player == &players[i]) + //continue; + const boolean isprevcheckpointi = mo->health == players[i].starpostnum; const boolean isnextcheckpointi = mo->health == (players[i].starpostnum + 1);