- 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:
Mitchell Richters 2020-10-12 16:28:05 +11:00
parent bf5bd01164
commit a792f329ca

View file

@ -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)));