mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 15:09:19 +02:00
build 170815.
This commit is contained in:
@@ -659,14 +659,6 @@ void TController::TableTraceRoute(double fDistance, TDynamicObject *pVehicle)
|
|||||||
if( ( iLast == -1 )
|
if( ( iLast == -1 )
|
||||||
|| ( false == TestFlag( sSpeedTable[iLast].iFlags, spEnabled | spEnd ) ) ) {
|
|| ( false == TestFlag( sSpeedTable[iLast].iFlags, spEnabled | spEnd ) ) ) {
|
||||||
// only if we haven't already marked end of the track
|
// 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 ?
|
|
||||||
spEnabled | spEnd | spReverse :
|
|
||||||
spEnabled | spEnd );
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
if( TableAddNew() ) {
|
if( TableAddNew() ) {
|
||||||
// zapisanie ostatniego sprawdzonego toru
|
// zapisanie ostatniego sprawdzonego toru
|
||||||
sSpeedTable[iLast].Set(
|
sSpeedTable[iLast].Set(
|
||||||
@@ -676,7 +668,6 @@ void TController::TableTraceRoute(double fDistance, TDynamicObject *pVehicle)
|
|||||||
spEnabled | spEnd ));
|
spEnabled | spEnd ));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// to ostatnia pozycja, bo NULL nic nie da, a może się podpiąć obrotnica, czy jakieś transportery
|
// to ostatnia pozycja, bo NULL nic nie da, a może się podpiąć obrotnica, czy jakieś transportery
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user