mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-15 20:20:54 +00:00
- binaryangle.h/PlayerAngle: Fix incorrect variable declaration on dang
within interpolatedsum()
method.
* Didn't seem to be causing an issue but better it be correct.
This commit is contained in:
parent
bf5bd01164
commit
a792f329ca
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ struct PlayerAngle
|
||||||
binangle interpolatedsum(double const smoothratio)
|
binangle interpolatedsum(double const smoothratio)
|
||||||
{
|
{
|
||||||
double const ratio = smoothratio / FRACUNIT;
|
double const ratio = smoothratio / FRACUNIT;
|
||||||
int32_t const dang = UINT32_MAX / 2;
|
uint32_t const dang = UINT32_MAX >> 1;
|
||||||
int64_t const prev = oang.asbam() + olook_ang.asbam();
|
int64_t const prev = oang.asbam() + olook_ang.asbam();
|
||||||
int64_t const curr = ang.asbam() + look_ang.asbam();
|
int64_t const curr = ang.asbam() + look_ang.asbam();
|
||||||
return bamang(prev + xs_CRoundToUInt(ratio * (((curr + dang - prev) & 0xFFFFFFFF) - dang)));
|
return bamang(prev + xs_CRoundToUInt(ratio * (((curr + dang - prev) & 0xFFFFFFFF) - dang)));
|
||||||
|
|
Loading…
Reference in a new issue