mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- gameinput.h: For PlayerHorizon and PlayerAngle struct methods settarget()
, always set the angle directly if backup set to true.
This commit is contained in:
parent
b9e1cbb5de
commit
e9e4590f6a
1 changed files with 4 additions and 4 deletions
|
@ -45,7 +45,7 @@ struct PlayerHorizon
|
|||
|
||||
void settarget(double value, bool backup = false)
|
||||
{
|
||||
if (!cl_syncinput)
|
||||
if (!cl_syncinput && !backup)
|
||||
{
|
||||
target = value * FRACUNIT;
|
||||
if (target == 0) target += 1;
|
||||
|
@ -169,7 +169,7 @@ struct PlayerAngle
|
|||
|
||||
void settarget(int value, bool backup = false)
|
||||
{
|
||||
if (!cl_syncinput)
|
||||
if (!cl_syncinput && !backup)
|
||||
{
|
||||
target = value << BAMBITS;
|
||||
if (target == 0) target += 1;
|
||||
|
@ -183,7 +183,7 @@ struct PlayerAngle
|
|||
|
||||
void settarget(double value, bool backup = false)
|
||||
{
|
||||
if (!cl_syncinput)
|
||||
if (!cl_syncinput && !backup)
|
||||
{
|
||||
target = value * BAMUNIT;
|
||||
if (target == 0) target += 1;
|
||||
|
@ -197,7 +197,7 @@ struct PlayerAngle
|
|||
|
||||
void settarget(binangle value, bool backup = false)
|
||||
{
|
||||
if (!cl_syncinput)
|
||||
if (!cl_syncinput && !backup)
|
||||
{
|
||||
target = value.asbam();
|
||||
if (target == 0) target += 1;
|
||||
|
|
Loading…
Reference in a new issue