16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 20:29:17 +02:00

build 170815.

This commit is contained in:
tmj-fstate
2017-08-15 22:47:31 +02:00
parent 5c14eb82cb
commit 4ee618a3c1
2 changed files with 8 additions and 17 deletions

View File

@@ -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