allow for multiple isolated segments in track

This commit is contained in:
milek7
2022-06-22 00:46:28 +02:00
parent be22d2d093
commit a712cf1e64
4 changed files with 26 additions and 20 deletions

View File

@@ -371,7 +371,7 @@ WyslijObsadzone()
r.fPar[ 16 * i + 5 ] = vehicle->GetPosition().y;
r.fPar[ 16 * i + 6 ] = vehicle->GetPosition().z;
r.iPar[ 16 * i + 7 ] = static_cast<int>( vehicle->Mechanik->action() );
strcpy( r.cString + 64 * i + 32, vehicle->GetTrack()->IsolatedName().c_str() );
strcpy( r.cString + 64 * i + 32, vehicle->GetTrack()->RemoteIsolatedName().c_str() );
strcpy( r.cString + 64 * i + 48, vehicle->Mechanik->TrainName().c_str() );
i++;
if( i > 30 ) break;