From 506a73c5de523dce8ead2a419fc2fc6b0307ada9 Mon Sep 17 00:00:00 2001 From: Ilya Shurumov Date: Mon, 28 Jun 2021 13:35:09 +0600 Subject: [PATCH] - make AddWheelForcesDriver1 a bit prettier --- src_rebuild/Game/C/wheelforces.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src_rebuild/Game/C/wheelforces.c b/src_rebuild/Game/C/wheelforces.c index 94f81bbf..b81b652c 100644 --- a/src_rebuild/Game/C/wheelforces.c +++ b/src_rebuild/Game/C/wheelforces.c @@ -358,7 +358,7 @@ void AddWheelForcesDriver1(CAR_DATA* cp, CAR_LOCALS* cl) if (ABS(pointVel[0]) + ABS(pointVel[2]) < 8000) { surfaceNormal[0] = 0; - surfaceNormal[1] = 0x1000; + surfaceNormal[1] = ONE; surfaceNormal[2] = 0; } } @@ -422,11 +422,11 @@ void AddWheelForcesDriver1(CAR_DATA* cp, CAR_LOCALS* cl) else { // front wheels - sidevel = frontFS * slidevel + 0x800 >> 0xc; + sidevel = frontFS * slidevel + 2048 >> 12; if (wheel->locked) { - sidevel = (frontFS * slidevel + 0x800 >> 0xd) + sidevel >> 1; + sidevel = (frontFS * slidevel + 2048 >> 13) + sidevel >> 1; forcefac = FixHalfRound(FIXEDH(-sidevel * lfx) * sdz - FIXEDH(-sidevel * lfz) * sdx, 11);