mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-03 06:33:14 +00:00
Rival always rubberbands to the front of the pack
This commit is contained in:
parent
47c2c875d5
commit
7bdb1e9458
1 changed files with 6 additions and 0 deletions
|
|
@ -212,6 +212,12 @@ static UINT32 K_BotRubberbandDistance(player_t *player)
|
||||||
UINT8 pos = 0;
|
UINT8 pos = 0;
|
||||||
UINT8 i;
|
UINT8 i;
|
||||||
|
|
||||||
|
if (player->botvars.rival)
|
||||||
|
{
|
||||||
|
// The rival should always try to be the front runner for the race.
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 0; i < MAXPLAYERS; i++)
|
for (i = 0; i < MAXPLAYERS; i++)
|
||||||
{
|
{
|
||||||
if (i == portpriority)
|
if (i == portpriority)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue