Bot predict nudging scale is based on the prediction's radius

This commit is contained in:
Sally Coolatta 2021-12-18 16:31:08 -05:00 committed by SinnamonLat
parent 945ef8bf0a
commit 19203e6a4a

View file

@ -619,7 +619,7 @@ void K_NudgePredictionTowardsObjects(botprediction_t *predict, player_t *player)
fixed_t avgX = 0, avgY = 0;
fixed_t avgDist = 0;
const fixed_t baseNudge = 128 * mapobjectscale;
const fixed_t baseNudge = predict->radius;
fixed_t maxNudge = distToPredict;
fixed_t nudgeDist = 0;
angle_t nudgeDir = 0;