17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-05 19:29:11 +01:00

Revert "Add static cast"

This reverts commit da962cd91b.
This commit is contained in:
2026-09-10 23:07:36 +02:00
parent eed44dc858
commit e9ca592ac3
2 changed files with 2 additions and 2 deletions

View File

@@ -953,7 +953,7 @@ TTrain::state_t TTrain::get_state() const
static_cast<float>(mvPantographUnit->PantPress), static_cast<float>(mvPantographUnit->PantPress),
fHVoltage, fHVoltage,
{fHCurrent[mvControlled->TrainType & dt_EZT ? 0 : 1], fHCurrent[2], fHCurrent[3]}, {fHCurrent[mvControlled->TrainType & dt_EZT ? 0 : 1], fHCurrent[2], fHCurrent[3]},
static_cast<uint32_t>(mvOccupied->EngineVoltage), mvOccupied->EngineVoltage,
ggLVoltage.GetValue(), ggLVoltage.GetValue(),
mvOccupied->DistCounter, mvOccupied->DistCounter,
static_cast<std::uint8_t>(RadioChannel()), static_cast<std::uint8_t>(RadioChannel()),

View File

@@ -108,7 +108,7 @@ class TTrain {
float pantograph_pressure; float pantograph_pressure;
float hv_voltage; float hv_voltage;
std::array<float, 3> hv_current; std::array<float, 3> hv_current;
std::uint32_t enginevoltage; double enginevoltage;
float lv_voltage; float lv_voltage;
double distance; double distance;
std::uint8_t radio_channel; std::uint8_t radio_channel;