From eceb6ce894c5fe1d1309459bc028edf1bf40ea1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kr=C3=B3lik=20Uszasty?= Date: Mon, 13 May 2019 18:32:54 +0200 Subject: [PATCH] Fixed displaying of arrival/departure time in driver ui panel --- Driver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Driver.cpp b/Driver.cpp index 12f0fadc..6add5b5f 100644 --- a/Driver.cpp +++ b/Driver.cpp @@ -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; };