AI does not fear SlippingWheels when driving ElectricInductionMotor vehicle + fix for adhesion calculation when slipping

This commit is contained in:
Królik Uszasty
2019-03-22 20:26:59 +01:00
committed by tmj-fstate
parent 73af767312
commit a767e36be8
3 changed files with 16 additions and 15 deletions

View File

@@ -5544,7 +5544,7 @@ TController::UpdateSituation(double dt) {
// część wykonawcza tylko dla AI, dla człowieka jedynie napisy
// zapobieganie poslizgowi u nas
if (mvControlling->SlippingWheels) {
if (mvControlling->SlippingWheels && mvControlling->EngineType != TEngineType::ElectricInductionMotor) {
if( false == mvControlling->DecScndCtrl( 2 ) ) {
// bocznik na zero