- binaryangle.h: Add missed line from 4e07942cff to calculate interpolation ratio using multiply instead of divide. Hopefully in the future we can just use a true double between 0 and 1 like GZDoom...

This commit is contained in:
Mitchell Richters 2020-10-18 22:05:21 +11:00
parent 4e07942cff
commit cd683e6511

View file

@ -164,7 +164,7 @@ struct PlayerAngle
binangle interpolatedsum(double const smoothratio)
{
double const ratio = smoothratio / FRACUNIT;
double const ratio = smoothratio * (1. / FRACUNIT);
uint32_t const dang = UINT32_MAX >> 1;
int64_t const prev = oang.asbam() + olook_ang.asbam();
int64_t const curr = ang.asbam() + look_ang.asbam();