mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-30 02:30:41 +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;
|
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
|
||||||
|
|
Loading…
Reference in a new issue