From 8533571bb0de98a3301bd0ce2e95e8d4e7062aaf Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Fri, 2 Sep 2022 10:40:21 -0400 Subject: [PATCH] Fix double scaling done for position --- src/k_kart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/k_kart.c b/src/k_kart.c index 4884dd9b..ef56bf44 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -1038,7 +1038,7 @@ static INT32 K_FindUseodds(player_t *player, fixed_t mashed, INT32 pingame, INT3 // so I'm gonna avoid touching it for now. pdis += P_AproxDistance(P_AproxDistance(players[i].mo->x - player->mo->x, players[i].mo->y - player->mo->y), - players[i].mo->z - player->mo->z) / mapobjectscale + players[i].mo->z - player->mo->z) / FRACUNIT * (pingame - players[i].kartstuff[k_position]) / max(1, ((pingame - 1) * (pingame + 1) / 3)); }