mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- Duke (RR): Repair issues with horizon following changes in 09a05f354c
and partially address vehicle turning speed in processVehicleInput()
.
* Issues with vehicle input handling with `cl_syncinput 1` still remain. Will address after work. * Partially addresses #128.
This commit is contained in:
parent
38c0af4d34
commit
1bc51a7367
2 changed files with 9 additions and 9 deletions
|
@ -805,7 +805,7 @@ static void processVehicleInput(player_struct *p, ControlInfo* const hidInput, I
|
|||
turnvel *= clamp(turnspeed * turnspeed, 0., 1.);
|
||||
|
||||
input.fvel = p->MotoSpeed;
|
||||
input.avel = turnvel;
|
||||
input.avel = turnvel * (45. / 256.);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
|
|
@ -1723,14 +1723,14 @@ static void onMotorcycle(int snum, ESyncBits &actions)
|
|||
{
|
||||
if (p->TurbCount <= 1)
|
||||
{
|
||||
horiz = 100;
|
||||
horiz = 0;
|
||||
p->TurbCount = 0;
|
||||
p->VBumpTarget = 0;
|
||||
p->VBumpNow = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
horiz = 100 + ((krand() & 15) - 7);
|
||||
horiz = ((krand() & 15) - 7);
|
||||
p->TurbCount--;
|
||||
p->moto_drink = (krand() & 3) - 2;
|
||||
}
|
||||
|
@ -1743,7 +1743,7 @@ static void onMotorcycle(int snum, ESyncBits &actions)
|
|||
p->VBumpNow++;
|
||||
if (p->VBumpTarget < p->VBumpNow)
|
||||
p->VBumpNow = p->VBumpTarget;
|
||||
horiz = 100 + p->VBumpNow / 3;
|
||||
horiz = p->VBumpNow / 3;
|
||||
}
|
||||
else if (p->VBumpTarget < p->VBumpNow)
|
||||
{
|
||||
|
@ -1753,7 +1753,7 @@ static void onMotorcycle(int snum, ESyncBits &actions)
|
|||
p->VBumpNow--;
|
||||
if (p->VBumpTarget > p->VBumpNow)
|
||||
p->VBumpNow = p->VBumpTarget;
|
||||
horiz = 100 + p->VBumpNow / 3;
|
||||
horiz = p->VBumpNow / 3;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -2052,14 +2052,14 @@ static void onBoat(int snum, ESyncBits &actions)
|
|||
{
|
||||
if (p->TurbCount <= 1)
|
||||
{
|
||||
horiz = 100;
|
||||
horiz = 0;
|
||||
p->TurbCount = 0;
|
||||
p->VBumpTarget = 0;
|
||||
p->VBumpNow = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
horiz = 100 + ((krand() & 15) - 7);
|
||||
horiz = ((krand() & 15) - 7);
|
||||
p->TurbCount--;
|
||||
p->moto_drink = (krand() & 3) - 2;
|
||||
}
|
||||
|
@ -2072,7 +2072,7 @@ static void onBoat(int snum, ESyncBits &actions)
|
|||
p->VBumpNow++;
|
||||
if (p->VBumpTarget < p->VBumpNow)
|
||||
p->VBumpNow = p->VBumpTarget;
|
||||
horiz = 100 + p->VBumpNow / 3;
|
||||
horiz = p->VBumpNow / 3;
|
||||
}
|
||||
else if (p->VBumpTarget < p->VBumpNow)
|
||||
{
|
||||
|
@ -2082,7 +2082,7 @@ static void onBoat(int snum, ESyncBits &actions)
|
|||
p->VBumpNow--;
|
||||
if (p->VBumpTarget > p->VBumpNow)
|
||||
p->VBumpNow = p->VBumpTarget;
|
||||
horiz = 100 + p->VBumpNow / 3;
|
||||
horiz = p->VBumpNow / 3;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue