From 9a23bde4356196c3e7cbf01ebd847fc09151d1f9 Mon Sep 17 00:00:00 2001 From: Antonio Martinez Date: Tue, 20 May 2025 18:48:21 -0400 Subject: [PATCH 1/2] Don't increase karted time when faulted --- src/p_user.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/p_user.c b/src/p_user.c index 9e811dc01..0b7325695 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -4238,6 +4238,7 @@ void P_PlayerThink(player_t *player) // Track airtime if (P_IsObjectOnGround(player->mo) + && !(player->pflags & PF_FAULT) && !P_PlayerInPain(player)) // This isn't airtime, but it's control loss all the same. { player->lastairtime = player->airtime; From 14c115fa363166456dd3b97d5bc0039fca565110 Mon Sep 17 00:00:00 2001 From: Antonio Martinez Date: Thu, 22 May 2025 13:57:08 -0400 Subject: [PATCH 2/2] Do something useful lmao --- src/p_user.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/p_user.c b/src/p_user.c index 0b7325695..0e498e4f8 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -4238,7 +4238,6 @@ void P_PlayerThink(player_t *player) // Track airtime if (P_IsObjectOnGround(player->mo) - && !(player->pflags & PF_FAULT) && !P_PlayerInPain(player)) // This isn't airtime, but it's control loss all the same. { player->lastairtime = player->airtime; @@ -4249,6 +4248,12 @@ void P_PlayerThink(player_t *player) player->airtime++; } + if ((player->pflags & PF_FAULT) || (player->pflags & PF_VOID)) + { + player->lastairtime = 0; + player->airtime = 0; + } + cmd = &player->cmd; // SRB2kart