- Duke (RRRA): Fix vehicle avel while cl_syncinput 1.

* Fully fixes #128.
This commit is contained in:
Mitchell Richters 2020-10-15 20:11:22 +11:00
parent fb91fc49a3
commit db419fd618

View file

@ -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
{