mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-29 13:00:43 +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)
|
void settarget(double value, bool backup = false)
|
||||||
{
|
{
|
||||||
if (!cl_syncinput)
|
if (!cl_syncinput && !backup)
|
||||||
{
|
{
|
||||||
target = value * FRACUNIT;
|
target = value * FRACUNIT;
|
||||||
if (target == 0) target += 1;
|
if (target == 0) target += 1;
|
||||||
|
@ -169,7 +169,7 @@ struct PlayerAngle
|
||||||
|
|
||||||
void settarget(int value, bool backup = false)
|
void settarget(int value, bool backup = false)
|
||||||
{
|
{
|
||||||
if (!cl_syncinput)
|
if (!cl_syncinput && !backup)
|
||||||
{
|
{
|
||||||
target = value << BAMBITS;
|
target = value << BAMBITS;
|
||||||
if (target == 0) target += 1;
|
if (target == 0) target += 1;
|
||||||
|
@ -183,7 +183,7 @@ struct PlayerAngle
|
||||||
|
|
||||||
void settarget(double value, bool backup = false)
|
void settarget(double value, bool backup = false)
|
||||||
{
|
{
|
||||||
if (!cl_syncinput)
|
if (!cl_syncinput && !backup)
|
||||||
{
|
{
|
||||||
target = value * BAMUNIT;
|
target = value * BAMUNIT;
|
||||||
if (target == 0) target += 1;
|
if (target == 0) target += 1;
|
||||||
|
@ -197,7 +197,7 @@ struct PlayerAngle
|
||||||
|
|
||||||
void settarget(binangle value, bool backup = false)
|
void settarget(binangle value, bool backup = false)
|
||||||
{
|
{
|
||||||
if (!cl_syncinput)
|
if (!cl_syncinput && !backup)
|
||||||
{
|
{
|
||||||
target = value.asbam();
|
target = value.asbam();
|
||||||
if (target == 0) target += 1;
|
if (target == 0) target += 1;
|
||||||
|
|
Loading…
Reference in a new issue