mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Make the safe distance from the road farther
This commit is contained in:
parent
2188391d42
commit
3b6a2fed77
1 changed files with 2 additions and 2 deletions
|
|
@ -461,7 +461,7 @@ static inline boolean K_FindBlockingWalls(line_t *line)
|
||||||
|
|
||||||
blocked:
|
blocked:
|
||||||
linedist = K_DistanceOfLineFromPoint(line->v1->x, line->v1->y, line->v2->x, line->v2->y, botmo->x, botmo->y);
|
linedist = K_DistanceOfLineFromPoint(line->v1->x, line->v1->y, line->v2->x, line->v2->y, botmo->x, botmo->y);
|
||||||
linedist -= (botmo->radius * 4); // Maintain a reasonable distance away from it
|
linedist -= (botmo->radius * 8); // Maintain a reasonable distance away from it
|
||||||
|
|
||||||
if (linedist > distancetocheck)
|
if (linedist > distancetocheck)
|
||||||
{
|
{
|
||||||
|
|
@ -1228,7 +1228,7 @@ void K_BuildBotTiccmd(player_t *player, ticcmd_t *cmd)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
const fixed_t playerwidth = (player->mo->radius * 2);
|
const fixed_t playerwidth = (player->mo->radius * 2);
|
||||||
const fixed_t realrad = predict->radius - (playerwidth * 2); // Remove a "safe" distance away from the edges of the road
|
const fixed_t realrad = predict->radius - (playerwidth * 4); // Remove a "safe" distance away from the edges of the road
|
||||||
fixed_t rad = realrad;
|
fixed_t rad = realrad;
|
||||||
fixed_t dirdist = K_DistanceOfLineFromPoint(
|
fixed_t dirdist = K_DistanceOfLineFromPoint(
|
||||||
player->mo->x, player->mo->y,
|
player->mo->x, player->mo->y,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue