mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-05 17:01:58 +00:00
Patch slight camera turn when airbraking
This commit is contained in:
parent
1a60f7a2ad
commit
a03ab5e294
1 changed files with 4 additions and 1 deletions
|
@ -1571,7 +1571,10 @@ void G_BuildTiccmd(ticcmd_t *cmd, INT32 realtics, UINT8 ssplayer)
|
||||||
|
|
||||||
if (camadjustfactor)
|
if (camadjustfactor)
|
||||||
{
|
{
|
||||||
INT32 anglediff = player->drawangle + drawangleoffset - *myangle;
|
INT32 anglediff =
|
||||||
|
// This check to potentially use angleturn fixes the judder when holding back in the air to brake
|
||||||
|
((alt && (forward || side) && !P_IsObjectOnGround(player->mo)) ? (cmd->angleturn<<16) : player->drawangle)
|
||||||
|
+ drawangleoffset - *myangle;
|
||||||
|
|
||||||
if (alt)
|
if (alt)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue