mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 12:49:18 +02:00
Fixed displaying of arrival/departure time in driver ui panel
This commit is contained in:
@@ -6603,12 +6603,12 @@ std::string TController::NextStop() const
|
|||||||
if( t->Ah >= 0 ) {
|
if( t->Ah >= 0 ) {
|
||||||
// przyjazd
|
// przyjazd
|
||||||
nextstop += " przyj." + std::to_string( t->Ah ) + ":"
|
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 ) {
|
if( t->Dh >= 0 ) {
|
||||||
// jeśli jest godzina odjazdu
|
// jeśli jest godzina odjazdu
|
||||||
nextstop += " odj." + std::to_string( t->Dh ) + ":"
|
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;
|
return nextstop;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user