mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-16 03:32:33 +00:00
Subtract your distance to the nextwaypoint from the distance to predict ahead
Helps the GHZ turn out a LOT, and other instances with waypoints far apart from each other
This commit is contained in:
parent
372544d28f
commit
4ec61a2e11
1 changed files with 3 additions and 1 deletions
|
|
@ -220,7 +220,9 @@ static botprediction_t *K_CreateBotPrediction(player_t *player)
|
|||
size_t nwp;
|
||||
size_t i;
|
||||
|
||||
if (distance <= 0)
|
||||
distanceleft -= P_AproxDistance(player->mo->x - wp->mobj->x, player->mo->y - wp->mobj->y) / FRACUNIT;
|
||||
|
||||
if (distanceleft <= 0)
|
||||
{
|
||||
predict->x = wp->mobj->x;
|
||||
predict->y = wp->mobj->y;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue