Skip to content

Commit 7671cc3

Browse files
committed
Simulator: align after rebase
1 parent b1d3315 commit 7671cc3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

shared/src/traintastic/simulator/simulator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2599,7 +2599,7 @@ bool Simulator::checkNextSignal(Train *train)
25992599
if(!train->state.nextSignal)
26002600
{
26012601
const float length = getSegmentLength(staticData.trackSegments[face.segmentIndex], m_stateData);
2602-
if(length >= 400)
2602+
if(length >= 100)
26032603
{
26042604
// Long segments do not find signal and also do not set dirty
26052605
// Set dirty near to end to re-trigger signal scan

shared/src/traintastic/simulator/simulator.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ class Simulator : public std::enable_shared_from_this<Simulator>
464464
void updateTrainPositions();
465465
bool updateVehiclePosition(VehicleState::Face& face,
466466
const float speed, bool isFirst_,
467-
Train &trainState_);
467+
Train &train_);
468468
void updateSensors();
469469

470470
bool isStraight(const TrackSegment& segment);

0 commit comments

Comments
 (0)