mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Never allow turn solver wrongsteer
This commit is contained in:
parent
c36c682bb5
commit
c9cabf0b95
1 changed files with 6 additions and 1 deletions
|
|
@ -2364,7 +2364,12 @@ static void P_UpdatePlayerAngle(player_t *player)
|
||||||
{
|
{
|
||||||
// We're off. Try to legally steer the player towards their camera.
|
// We're off. Try to legally steer the player towards their camera.
|
||||||
|
|
||||||
if (K_Sliptiding(player) && P_IsObjectOnGround(player->mo) && (player->cmd.turning != 0) && ((player->cmd.turning > 0) == (player->aizdriftstrat > 0)))
|
// 2.3 - Never allow turn solver to steer against your input (fixes heavyweight sliptides)
|
||||||
|
boolean restrictDirectionChange = (player->cmd.turning != 0);
|
||||||
|
if (G_CompatLevel(0x000C))
|
||||||
|
restrictDirectionChange = (K_Sliptiding(player) && P_IsObjectOnGround(player->mo) && (player->cmd.turning != 0) && ((player->cmd.turning > 0) == (player->aizdriftstrat > 0)));
|
||||||
|
|
||||||
|
if (restrictDirectionChange)
|
||||||
{
|
{
|
||||||
// Don't change handling direction if someone's inputs are sliptiding, you'll break the sliptide!
|
// Don't change handling direction if someone's inputs are sliptiding, you'll break the sliptide!
|
||||||
if (player->cmd.turning > 0)
|
if (player->cmd.turning > 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue