mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Set angleturn from player angle instead of relying on the previous state
This commit is contained in:
parent
0ee1628b51
commit
b83ce45941
1 changed files with 1 additions and 1 deletions
|
|
@ -322,7 +322,7 @@ void K_BuildBotTiccmd(player_t *player, ticcmd_t *cmd)
|
||||||
if (turnamt != 0)
|
if (turnamt != 0)
|
||||||
{
|
{
|
||||||
cmd->driftturn = turnamt * turnsign;
|
cmd->driftturn = turnamt * turnsign;
|
||||||
cmd->angleturn += turnamt * turnsign;
|
cmd->angleturn = ( player->mo->angle >> 16 ) + turnamt * turnsign;
|
||||||
}
|
}
|
||||||
|
|
||||||
Z_Free(predict);
|
Z_Free(predict);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue