18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-20 17:25:00 +01:00

Merge pull request #282 from MaSzyna-EU07/fix/freight-brake-setting-cw1

AI wagon inspector: brake settings G/P/R by the instruction Cw-1 (eu07/maszyna#350)
This commit is contained in:
maj00r
2026-11-11 14:21:28 +01:00
committed by GitHub
11 changed files with 1036 additions and 103 deletions

View File

@@ -2136,6 +2136,8 @@ void TTrain::OnCommand_trainbrakeoperationtoggle(TTrain *Train, command_data con
}
vehicle->MoverParameters->Hamulec->SetBrakeStatus(vehicle->MoverParameters->Hamulec->GetBrakeStatus() ^ b_dmg);
// the brake is the player's now, the wagon inspector won't put it back on its own
vehicle->MoverParameters->BrakeCutOutByInspector = false;
}
}