The International Simutrans Forum

Development => Bug Reports => Topic started by: Dwachs on April 23, 2010, 07:55:45 AM

Title: trains decelerate at waypoints with signals to 25 km/h
Post by: Dwachs on April 23, 2010, 07:55:45 AM
.. while this does not happen for signals not on waypoints or waypoints without signals.
Title: Re: trains decelerate at waypoints with signals to 25 km/h
Post by: neroden on April 26, 2010, 07:23:28 PM
.. while this does not happen for signals not on waypoints or waypoints without signals.

This is triggering the braking code in vehicle/simvehikel.cc:
Code: [Select]
                       if(check_for_finish) {
                                // for the half last tile to stop in stations only
                                brake_speed_soll = kmh_to_speed(25);
                        }

I guess a waypoint with a signal triggers "check_for_finish".
Title: Re: trains decelerate at waypoints with signals to 25 km/h
Post by: neroden on June 18, 2010, 06:23:43 PM
Is this bug still happening?  The waypoint-signal combo *shouldn't* trigger check_for_finish, and I haven't figured out why it *is* triggering it.
Title: Re: trains decelerate at waypoints with signals to 25 km/h
Post by: prissi on June 18, 2010, 09:21:20 PM
It has nothing to do with finish. The waypoint on a signal is treated as a red signal, since it cannot check for free route until reached.