mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-31 09:20:59 +00:00
- binaryangle.h
: Change binangle
bitshift operators to operate on signed value to properly handle angles > 1024.
This commit is contained in:
parent
a1570c185f
commit
eb8b075727
4 changed files with 9 additions and 9 deletions
|
@ -331,7 +331,7 @@ void PlayerAngle::applyinput(float const avel, ESyncBits* actions, double const
|
|||
if (*actions & SB_LOOK_LEFT)
|
||||
{
|
||||
// start looking left
|
||||
look_ang += buildfang(scaleAdjust * -(4560. / GameTicRate));
|
||||
look_ang -= buildfang(scaleAdjust * (4560. / GameTicRate));
|
||||
rotscrnang += buildfang(scaleAdjust * (720. / GameTicRate));
|
||||
}
|
||||
|
||||
|
@ -339,7 +339,7 @@ void PlayerAngle::applyinput(float const avel, ESyncBits* actions, double const
|
|||
{
|
||||
// start looking right
|
||||
look_ang += buildfang(scaleAdjust * (4560. / GameTicRate));
|
||||
rotscrnang += buildfang(scaleAdjust * -(720. / GameTicRate));
|
||||
rotscrnang -= buildfang(scaleAdjust * (720. / GameTicRate));
|
||||
}
|
||||
|
||||
if (!movementlocked())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue