mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 12:49:18 +02:00
Fixed Driver.cpp when DieselEngine has no CabActive
This commit is contained in:
@@ -4048,7 +4048,7 @@ void TController::SpeedCntrl(double DesiredSpeed)
|
|||||||
void TController::SetTimeControllers()
|
void TController::SetTimeControllers()
|
||||||
{
|
{
|
||||||
// TBD, TODO: rework this method to use hint system and regardless of driver type
|
// TBD, TODO: rework this method to use hint system and regardless of driver type
|
||||||
if( false == AIControllFlag ) { return; }
|
if( false == AIControllFlag || 0 == mvOccupied->CabActive ) { return; }
|
||||||
|
|
||||||
//1. Check the type of Main Brake Handle
|
//1. Check the type of Main Brake Handle
|
||||||
if( BrakeSystem == TBrakeSystem::Pneumatic || ForcePNBrake )
|
if( BrakeSystem == TBrakeSystem::Pneumatic || ForcePNBrake )
|
||||||
@@ -4261,7 +4261,7 @@ void TController::SetTimeControllers()
|
|||||||
void TController::CheckTimeControllers()
|
void TController::CheckTimeControllers()
|
||||||
{
|
{
|
||||||
// TODO: rework this method to use hint system and regardless of driver type
|
// TODO: rework this method to use hint system and regardless of driver type
|
||||||
if( false == AIControllFlag ) { return; }
|
if( false == AIControllFlag || 0 == mvControlling->CabActive ) { return; }
|
||||||
|
|
||||||
//1. Check the type of Main Brake Handle
|
//1. Check the type of Main Brake Handle
|
||||||
if( BrakeSystem == TBrakeSystem::ElectroPneumatic && mvOccupied->Handle->TimeEP && !ForcePNBrake )
|
if( BrakeSystem == TBrakeSystem::ElectroPneumatic && mvOccupied->Handle->TimeEP && !ForcePNBrake )
|
||||||
|
|||||||
Reference in New Issue
Block a user