From f920dd026d7abe49d04f10314cae71cb078142e8 Mon Sep 17 00:00:00 2001 From: Sally Cochenour Date: Wed, 22 Apr 2020 21:53:52 -0400 Subject: [PATCH] Minor things --- src/k_bot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/k_bot.c b/src/k_bot.c index 920556724..c85a396df 100644 --- a/src/k_bot.c +++ b/src/k_bot.c @@ -123,6 +123,7 @@ boolean K_BotCanTakeCut(player_t *player) { if (!K_ApplyOffroad(player) || player->kartstuff[k_itemtype] == KITEM_SNEAKER + || player->kartstuff[k_itemtype] == KITEM_ROCKETSNEAKER || player->kartstuff[k_itemtype] == KITEM_INVINCIBILITY || player->kartstuff[k_itemtype] == KITEM_HYUDORO) return true; @@ -210,6 +211,7 @@ static fixed_t K_DistanceOfLineFromPoint(fixed_t v1x, fixed_t v1y, fixed_t v2x, static botprediction_t *K_CreateBotPrediction(player_t *player) { + const tic_t futuresight = (3*TICRATE/4); // How far ahead into the future to try and predict const INT32 distance = (player->speed / FRACUNIT) * futuresight; INT32 distanceleft = distance; botprediction_t *predict = Z_Calloc(sizeof(botprediction_t), PU_LEVEL, NULL);