]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/aicontrol.cpp
Use different stopping margin depending on whether the next track is a turnout
[r2c2.git] / source / libr2c2 / aicontrol.cpp
index 782993752ab94cd504261b5522a7211b936b92b5..d1a69aac11f04717d10d13c4e5fea365ec8d7cba 100644 (file)
@@ -100,7 +100,7 @@ void AIControl::tick(const Time::TimeDelta &dt)
        float brake_dist = next_ctrl->get_braking_distance();
        float approach_margin = 50*scale;
        float approach_speed = 5*scale;
-       float margin = 10*scale;
+       float margin = 1*scale;
 
        State old_state = state;