mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-25 11:39:47 +01:00
Merge branch 'master' into refactor/split-oncommands-train
Brings the branch up to date after ~6 weeks of drift (51 commits).
The only real conflict was vehicle/Train.cpp, deleted here and modified
on master by 763a76d4, which added a dynamicbrake_pos entry to
GetTrainState. That line is re-applied in its new home,
vehicle/train/TrainState.cpp; the file deletion is kept.
utilities/uart.cpp and vehicle/Driver.cpp merged cleanly: master edited
function bodies, this branch only rewrote the Train.h include paths.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -2236,7 +2236,10 @@ void TController::AutoRewident()
|
||||
}
|
||||
|
||||
BrakeSystem = consist_brake_system();
|
||||
mvOccupied->EpFuseSwitch( BrakeSystem == TBrakeSystem::ElectroPneumatic );
|
||||
// Change the EP fuse state only when AI is in charge, don't fiddle with controls when the user is controlling the vehicle
|
||||
if (AIControllFlag) {
|
||||
mvOccupied->EpFuseSwitch(BrakeSystem == TBrakeSystem::ElectroPneumatic);
|
||||
}
|
||||
|
||||
if( OrderCurrentGet() & ( Obey_train | Bank ) ) {
|
||||
// 4. Przeliczanie siły hamowania
|
||||
|
||||
Reference in New Issue
Block a user