From 24186b29140bddc95899d2338e8761ac762bba4c Mon Sep 17 00:00:00 2001 From: milek7 Date: Sat, 31 Aug 2019 16:46:34 +0200 Subject: [PATCH] float cast for visual --- Train.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Train.cpp b/Train.cpp index ab2f0517..6c4c2b00 100644 --- a/Train.cpp +++ b/Train.cpp @@ -607,7 +607,7 @@ TTrain::get_state() const { static_cast( mvOccupied->BrakePress ), fHVoltage, { fHCurrent[ ( mvControlled->TrainType & dt_EZT ) ? 0 : 1 ], fHCurrent[ 2 ], fHCurrent[ 3 ] }, - mvOccupied->DistCounter + (float)mvOccupied->DistCounter }; }