Merge branch 'develop-SoapyMan' of https://github.com/SoapyMan/REDRIVER2 into develop-SoapyMan

This commit is contained in:
Ilya Shurumov 2020-09-16 19:49:18 +06:00
commit 651359d3d2
2 changed files with 6 additions and 5 deletions

View File

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

View File

@ -28,6 +28,7 @@ _HANDLING_TYPE handlingType[7] =
{ 29, 0, 0, 0 }
};
// decompiled code
// original method signature:
// void /*$ra*/ StepCars()