Don't allow bots to do grip turns in the air
This commit is contained in:
parent
21000c7969
commit
71175d82ca
1 changed files with 1 additions and 1 deletions
|
|
@ -1342,7 +1342,7 @@ static INT32 K_HandleBotTrack(botdata_t *bd, const player_t *player, angle_t des
|
|||
bd->brakedown = false;
|
||||
|
||||
// Additional grip for turns.
|
||||
if ((player->speed > K_GetKartSpeed(player, false, false)/2) && !bd->griplockout)//35*FRACUNIT
|
||||
if (player->mo && P_IsObjectOnGround(player->mo) && (player->speed > K_GetKartSpeed(player, false, false)/2) && !bd->griplockout)//35*FRACUNIT
|
||||
{
|
||||
const angle_t MAXERROR = ANGLE_45;
|
||||
const angle_t MIDERROR = ANGLE_22h;
|
||||
|
|
|
|||
Loading…
Reference in a new issue