mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-12 07:34:50 +00:00
- fixed: smooth bobbing uses the full angular range to calculate its position.
This commit is contained in:
parent
14b370df66
commit
7f23a91488
1 changed files with 2 additions and 2 deletions
|
@ -443,12 +443,12 @@ void P_BobWeapon (player_t *player, pspdef_t *psp, float *x, float *y)
|
|||
|
||||
case AWeapon::BobSmooth:
|
||||
*x = bobx*angle.Cos();
|
||||
*y = 0.5f * (boby * (1.f - fabsf((angle * 2).Cos())));
|
||||
*y = 0.5f * (boby * (1.f - ((angle * 2).Cos())));
|
||||
break;
|
||||
|
||||
case AWeapon::BobInverseSmooth:
|
||||
*x = bobx*angle.Cos();
|
||||
*y = 0.5f * (boby * (1.f + fabsf((angle * 2).Cos())));
|
||||
*y = 0.5f * (boby * (1.f + ((angle * 2).Cos())));
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue