From eb94b9e6b005f6377028c5bde0f8e197869b3541 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Mon, 29 Apr 2024 01:48:47 -0400 Subject: [PATCH] Fix bot modifier not nerfing rings --- src/k_kart.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/k_kart.c b/src/k_kart.c index 9eae4da16..d066a53df 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -10279,12 +10279,7 @@ static void K_UpdatePlayerWaypoints(player_t *const player) INT32 K_GetKartRingPower(const player_t *player, boolean boosted) { fixed_t ringPower = ((9 - player->kartspeed) + (9 - player->kartweight)) * (FRACUNIT/2); - fixed_t basePower = ringPower; - // FIXME: Bot ringboost adjustments can award negative ringboost per ring, which seems bad. - // Revisit these values if bot ringboost needs to respond to low-complexity maps better, - // but for now we're just lazily making sure that bots never have their ringboost "boosted" - // below the value that a player would have when playing the same stat combo. if (boosted == true && K_PlayerUsesBotMovement(player)) { // x2.0 for Lv. 9 @@ -10299,7 +10294,7 @@ INT32 K_GetKartRingPower(const player_t *player, boolean boosted) } } - return max(ringPower, basePower) / FRACUNIT; + return max(ringPower / FRACUNIT, 1); } // Returns false if this player being placed here causes them to collide with any other player