From 558a1eda077874a12c9aa4918e33ca445b33f9ab Mon Sep 17 00:00:00 2001 From: Valera Date: Thu, 20 Nov 2025 20:01:57 +0700 Subject: [PATCH] rebalance --- Code/Car/VeloXCar.ABS.cs | 5 ++--- Code/Car/VeloXCar.ESC.cs | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Code/Car/VeloXCar.ABS.cs b/Code/Car/VeloXCar.ABS.cs index 5306d71..912db1c 100644 --- a/Code/Car/VeloXCar.ABS.cs +++ b/Code/Car/VeloXCar.ABS.cs @@ -11,12 +11,11 @@ public partial class VeloXCar private void UpdateABS() { + ABSActive = false; if ( !UseABS ) return; - ABSActive = false; - - if ( TotalSpeed < 100 || ABSActive ) + if ( TotalSpeed < 100 || ABSActive || Steering.AlmostEqual( 0, 1 ) ) return; diff --git a/Code/Car/VeloXCar.ESC.cs b/Code/Car/VeloXCar.ESC.cs index 084ffdd..58a1d9b 100644 --- a/Code/Car/VeloXCar.ESC.cs +++ b/Code/Car/VeloXCar.ESC.cs @@ -12,9 +12,10 @@ public partial class VeloXCar public static bool UseESC = true; private void UpdateESC() { + ESCActive = false; + if ( !UseESC ) return; - ESCActive = false; if ( TotalSpeed < 100 || CarDirection != 1 ) return;