- binaryangle.h: Fix issues with PlayerAngle.settarget() following changes in bf5bd01164.

* Just was not working whatsoever, really...
This commit is contained in:
Mitchell Richters 2020-10-18 21:31:36 +11:00
parent 666fe71201
commit 19d9e1a947

View file

@ -93,8 +93,7 @@ struct PlayerAngle
{ {
binangle ang, oang; binangle ang, oang;
lookangle look_ang, olook_ang, rotscrnang, orotscrnang, spin; lookangle look_ang, olook_ang, rotscrnang, orotscrnang, spin;
uint32_t target; double adjustment, target;
double adjustment;
void backup() void backup()
{ {
@ -131,7 +130,7 @@ struct PlayerAngle
{ {
if (!cl_syncinput) if (!cl_syncinput)
{ {
target = xs_CRoundToUInt(value * BAMUNIT); target = value * BAMUNIT;
if (target == 0) target += 1; if (target == 0) target += 1;
} }
else else