16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 00:09:19 +02:00

float cast for visual

This commit is contained in:
milek7
2019-08-31 16:46:34 +02:00
parent 17c82d9641
commit 24186b2914

View File

@@ -607,7 +607,7 @@ TTrain::get_state() const {
static_cast<float>( mvOccupied->BrakePress ),
fHVoltage,
{ fHCurrent[ ( mvControlled->TrainType & dt_EZT ) ? 0 : 1 ], fHCurrent[ 2 ], fHCurrent[ 3 ] },
mvOccupied->DistCounter
(float)mvOccupied->DistCounter
};
}