diff --git a/Driver.cpp b/Driver.cpp index 5ef2a886..9972d848 100644 --- a/Driver.cpp +++ b/Driver.cpp @@ -659,22 +659,13 @@ void TController::TableTraceRoute(double fDistance, TDynamicObject *pVehicle) if( ( iLast == -1 ) || ( false == TestFlag( sSpeedTable[iLast].iFlags, spEnabled | spEnd ) ) ) { // only if we haven't already marked end of the track - if( tLast == sSpeedTable[ iLast ].trTrack ) { - // don't add the same track twice, it messes up distance calculations in speed point update - sSpeedTable[ iLast ].iFlags |= ( - fLastDir < 0 ? + if( TableAddNew() ) { + // zapisanie ostatniego sprawdzonego toru + sSpeedTable[iLast].Set( + tLast, fCurrentDistance, + ( fLastDir < 0 ? spEnabled | spEnd | spReverse : - spEnabled | spEnd ); - } - else { - if( TableAddNew() ) { - // zapisanie ostatniego sprawdzonego toru - sSpeedTable[ iLast ].Set( - tLast, fCurrentDistance, - ( fLastDir < 0 ? - spEnabled | spEnd | spReverse : - spEnabled | spEnd ) ); - } + spEnabled | spEnd )); } } // to ostatnia pozycja, bo NULL nic nie da, a może się podpiąć obrotnica, czy jakieś transportery diff --git a/version.h b/version.h index c2fc5b53..f3543435 100644 --- a/version.h +++ b/version.h @@ -1,5 +1,5 @@ #pragma once #define VERSION_MAJOR 17 -#define VERSION_MINOR 814 -#define VERSION_REVISION 1 +#define VERSION_MINOR 815 +#define VERSION_REVISION 0