Merge branch 'autobrake-fix' into 'next'

Make autobrake account for scale

See merge request STJr/SRB2!1782
This commit is contained in:
sphere 2022-07-29 09:33:29 +00:00
commit c65851d17c

View file

@ -11915,7 +11915,7 @@ void P_PlayerThink(player_t *player)
if (player->mo->movefactor != FRACUNIT) // Friction-scaled acceleration...
acceleration = FixedMul(acceleration<<FRACBITS, player->mo->movefactor)>>FRACBITS;
P_Thrust(player->mo, moveAngle, -acceleration);
P_Thrust(player->mo, moveAngle, FixedMul(-acceleration, player->mo->scale));
}
if (!(player->pflags & PF_AUTOBRAKE)