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

feat(ui): repair the broken coupler next to the camera from the driving aid

This commit is contained in:
2026-11-11 02:52:00 +01:00
parent 8e97277bcb
commit aba8687678
8 changed files with 125 additions and 3 deletions

View File

@@ -422,6 +422,12 @@ void state_manager::process_commands() {
}
}
if (commanddata.command == user_command::repaircoupler) {
if (auto *vehicle{simulation::Vehicles.find(commanddata.payload)}; vehicle != nullptr) {
vehicle->MoverParameters->repair_coupler(static_cast<int>(commanddata.param1) == end::rear ? end::rear : end::front);
}
}
if (commanddata.command == user_command::fillcompressor) {
TDynamicObject *vehicle = simulation::Vehicles.find(commanddata.payload);
vehicle->MoverParameters->CompressedVolume = 8.0f * vehicle->MoverParameters->VeselVolume;