The International Simutrans Forum

 

Author Topic: trains decelerate at waypoints with signals to 25 km/h  (Read 2337 times)

0 Members and 1 Guest are viewing this topic.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4580
  • Languages: EN, DE, AT
trains decelerate at waypoints with signals to 25 km/h
« on: April 23, 2010, 07:55:45 AM »
.. while this does not happen for signals not on waypoints or waypoints without signals.

Offline neroden

  • Devotees (Inactive)
  • *
  • Posts: 831
  • Nathanael Nerode
Re: trains decelerate at waypoints with signals to 25 km/h
« Reply #1 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".

Offline neroden

  • Devotees (Inactive)
  • *
  • Posts: 831
  • Nathanael Nerode
Re: trains decelerate at waypoints with signals to 25 km/h
« Reply #2 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.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9472
  • Languages: De,EN,JP
Re: trains decelerate at waypoints with signals to 25 km/h
« Reply #3 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.