From 7d9d88ea39a2f72ee62f014fe459680b8e458ba7 Mon Sep 17 00:00:00 2001 From: yamamama Date: Sun, 15 Mar 2026 17:51:13 -0400 Subject: [PATCH] distancefromcluster: Move mapscale undo to DtF calcs only Conga already undoes mobjscale, so we were effectively double-scaling, which would really badly blow up the distance on mobjscaled maps --- src/k_kart.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/k_kart.c b/src/k_kart.c index f9b4ce5cf..600a895c0 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -10260,12 +10260,12 @@ static UINT32 K_UpdateDistanceFromCluster(player_t* player) // Otherwise, just use the raw distancing. if (pingame < 3) { - return (player->distancetofinish - + return K_UndoMapScaling(player->distancetofinish - players[tinypoptarget].distancetofinish) / 2; } - return (player->distancetofinish - players[tinypoptarget].distancetofinish); + return K_UndoMapScaling(player->distancetofinish - players[tinypoptarget].distancetofinish); } UINT32 targetdtf; @@ -10286,7 +10286,7 @@ static UINT32 K_UpdateDistanceFromCluster(player_t* player) return 0; // Ahead, or tying. // Return the difference between us and the cluster distance. - return (player->distancetofinish - targetdtf); + return K_UndoMapScaling(player->distancetofinish - targetdtf); } } @@ -10656,7 +10656,7 @@ void K_UpdateAllPlayerPositions(void) // Get the cluster distance. players[i].distancefromcluster = - K_UndoMapScaling(K_UpdateDistanceFromCluster(&players[i])); + K_UpdateDistanceFromCluster(&players[i]); } } }