mirror of
https://github.com/DrBeef/Raze.git
synced 2024-12-02 17:11:51 +00:00
- Duke (RRRA): Fix vehicle avel while cl_syncinput 1
.
* Fully fixes #128.
This commit is contained in:
parent
fb91fc49a3
commit
db419fd618
1 changed files with 2 additions and 1 deletions
|
@ -804,6 +804,7 @@ static void processVehicleInput(player_struct *p, ControlInfo* const hidInput, I
|
|||
|
||||
input.fvel = p->MotoSpeed;
|
||||
input.avel = turnvel * (45. / 256.);
|
||||
loc.avel = clamp(loc.avel + input.avel, -MAXANGVEL, MAXANGVEL);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
@ -834,7 +835,7 @@ static void FinalizeInput(int playerNum, InputPacket& input, bool vehicle)
|
|||
loc.svel = clamp(loc.svel + input.svel, -MAXSVEL, MAXSVEL);
|
||||
}
|
||||
else
|
||||
loc.fvel = clamp(input.fvel, -(MAXVELMOTO / 8), MAXVELMOTO);
|
||||
loc.fvel = clamp(input.fvel, -(MAXVELMOTO >> 3), MAXVELMOTO);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue