mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-27 06:22:18 +00:00
- binaryangle.h: Fix issues with PlayerAngle.settarget()
following changes in bf5bd01164
.
* Just was not working whatsoever, really...
This commit is contained in:
parent
666fe71201
commit
19d9e1a947
1 changed files with 2 additions and 3 deletions
|
@ -93,8 +93,7 @@ struct PlayerAngle
|
|||
{
|
||||
binangle ang, oang;
|
||||
lookangle look_ang, olook_ang, rotscrnang, orotscrnang, spin;
|
||||
uint32_t target;
|
||||
double adjustment;
|
||||
double adjustment, target;
|
||||
|
||||
void backup()
|
||||
{
|
||||
|
@ -131,7 +130,7 @@ struct PlayerAngle
|
|||
{
|
||||
if (!cl_syncinput)
|
||||
{
|
||||
target = xs_CRoundToUInt(value * BAMUNIT);
|
||||
target = value * BAMUNIT;
|
||||
if (target == 0) target += 1;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue