mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +00:00
- binaryangle.h/PlayerAngle: Make settarget()
method consistent with PlayerHorizon
class and fix incorrect variable declaration.
This commit is contained in:
parent
c08851e4c0
commit
bf5bd01164
1 changed files with 3 additions and 2 deletions
|
@ -93,7 +93,8 @@ struct PlayerAngle
|
|||
{
|
||||
binangle ang, oang;
|
||||
lookangle look_ang, olook_ang, rotscrnang, orotscrnang, spin;
|
||||
double adjustment, target;
|
||||
uint32_t target;
|
||||
double adjustment;
|
||||
|
||||
void backup()
|
||||
{
|
||||
|
@ -130,8 +131,8 @@ struct PlayerAngle
|
|||
{
|
||||
if (!cl_syncinput)
|
||||
{
|
||||
if (value == 0) value += (1. / BAMUNIT);
|
||||
target = xs_CRoundToUInt(value * BAMUNIT);
|
||||
if (target == 0) target += 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue