Use pitch/roll for camera tilting

This commit is contained in:
James R 2021-04-06 15:04:24 -07:00
parent 696e405038
commit f313eece7e

View file

@ -4306,21 +4306,9 @@ DoABarrelRoll (player_t *player)
return; return;
} }
if (player->mo->standingslope) slope = InvAngle(R_SpriteRotationAngle(player->mo));
{
slope = player->mo->standingslope->zangle;
}
else
{
slope = 0;
}
if (abs((INT32)slope) > ANGLE_11hh) if (AbsAngle(slope) < ANGLE_11hh)
{
delta = ( player->mo->angle - player->mo->standingslope->xydirection );
slope = -(FixedMul(FINESINE (delta>>ANGLETOFINESHIFT), slope));
}
else
{ {
slope = 0; slope = 0;
} }