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

Fixed displaying of arrival/departure time in driver ui panel

This commit is contained in:
Królik Uszasty
2019-05-13 18:32:54 +02:00
parent b4210f8094
commit eceb6ce894

View File

@@ -6603,12 +6603,12 @@ std::string TController::NextStop() const
if( t->Ah >= 0 ) {
// przyjazd
nextstop += " przyj." + std::to_string( t->Ah ) + ":"
+ ( t->Am < 10 ? "0" : "" ) + std::to_string( t->Am );
+ ( t->Am < 10 ? "0" : "" ) + std::to_string( int(t->Am) ) + "." + std::to_string(int(t->Am * 10) % 10);
}
if( t->Dh >= 0 ) {
// jeśli jest godzina odjazdu
nextstop += " odj." + std::to_string( t->Dh ) + ":"
+ ( t->Dm < 10 ? "0" : "" ) + std::to_string( t->Dm );
+ ( t->Dm < 10 ? "0" : "" ) + std::to_string( int( t->Dm )) + "." + std::to_string(int(t->Dm * 10) % 10);
}
return nextstop;
};