mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-22 18:32:42 +01:00
Merge branch 'develop-SoapyMan' of https://github.com/SoapyMan/REDRIVER2 into develop-SoapyMan
This commit is contained in:
commit
651359d3d2
@ -2212,14 +2212,10 @@ void ProcessCarPad(_CAR_DATA *cp, ulong pad, char PadSteer, char use_analogue)
|
||||
else
|
||||
sVar2 = ((iVar3 + 278) * -4778) >> 8;
|
||||
|
||||
cp->thrust = sVar2;
|
||||
cp->thrust = FIXEDH(cp->thrust * cp->ap.carCos->powerRatio);
|
||||
cp->thrust = FIXEDH(sVar2 * cp->ap.carCos->powerRatio);
|
||||
}
|
||||
else if ((pad & 0x40) != 0)
|
||||
{
|
||||
cp->thrust = 0x1333;
|
||||
cp->thrust = FIXEDH(cp->ap.carCos->powerRatio * 0x1333);
|
||||
|
||||
if (cp->hndType == 5)
|
||||
{
|
||||
iVar7 = car_data[player[0].playerCarId].hd.where.t[0] - cp->hd.where.t[0] >> 10;
|
||||
@ -2242,6 +2238,10 @@ void ProcessCarPad(_CAR_DATA *cp, ulong pad, char PadSteer, char use_analogue)
|
||||
|
||||
cp->thrust = sVar2;
|
||||
}
|
||||
else
|
||||
{
|
||||
cp->thrust = FIXEDH(cp->ap.carCos->powerRatio * 0x1333);
|
||||
}
|
||||
|
||||
if (cp->controlType == 1)
|
||||
{
|
||||
|
@ -28,6 +28,7 @@ _HANDLING_TYPE handlingType[7] =
|
||||
{ 29, 0, 0, 0 }
|
||||
};
|
||||
|
||||
|
||||
// decompiled code
|
||||
// original method signature:
|
||||
// void /*$ra*/ StepCars()
|
||||
|
Loading…
Reference in New Issue
Block a user