Prevent corpses distance updating

This commit is contained in:
Antonio Martinez 2025-11-01 03:01:04 -04:00
parent c6bcc403ba
commit 64f7d272c3

View file

@ -12402,7 +12402,7 @@ static boolean K_SetPlayerNextWaypoint(player_t *player)
--------------------------------------------------*/
static void K_UpdateDistanceFromFinishLine(player_t *const player)
{
if ((player != NULL) && (player->mo != NULL))
if ((player != NULL) && (player->mo != NULL) && (player->mo->health > 0))
{
waypoint_t *finishline = K_GetFinishLineWaypoint();