From e9ca592ac301b03a9286061ce0f79551c8bd0367 Mon Sep 17 00:00:00 2001 From: Hirek193 Date: Thu, 10 Sep 2026 23:07:36 +0200 Subject: [PATCH] Revert "Add static cast" This reverts commit da962cd91bea28f7bb58d0bc827d6ee472cf2101. --- vehicle/Train.cpp | 2 +- vehicle/Train.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vehicle/Train.cpp b/vehicle/Train.cpp index 43760550..def4abe8 100644 --- a/vehicle/Train.cpp +++ b/vehicle/Train.cpp @@ -953,7 +953,7 @@ TTrain::state_t TTrain::get_state() const static_cast(mvPantographUnit->PantPress), fHVoltage, {fHCurrent[mvControlled->TrainType & dt_EZT ? 0 : 1], fHCurrent[2], fHCurrent[3]}, - static_cast(mvOccupied->EngineVoltage), + mvOccupied->EngineVoltage, ggLVoltage.GetValue(), mvOccupied->DistCounter, static_cast(RadioChannel()), diff --git a/vehicle/Train.h b/vehicle/Train.h index 8e84308d..0d88d63d 100644 --- a/vehicle/Train.h +++ b/vehicle/Train.h @@ -108,7 +108,7 @@ class TTrain { float pantograph_pressure; float hv_voltage; std::array hv_current; - std::uint32_t enginevoltage; + double enginevoltage; float lv_voltage; double distance; std::uint8_t radio_channel;