If there aren't signals in a route, the station list is not built

Bug #1448715 reported by Carlo Santucci
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Open Rails
Fix Released
High
Carlo Santucci

Bug Description

In the tram route downloadable from here http://www.trainsimhobby.net/infusions/pro_download_panel/download.php?did=761 there are no signals. In this case the platform list is not built, due to this code section in signals.cs:
          if (noSignals > 0)
            {
                signalObjects = new SignalObject[noSignals];
                SignalObject.trackNodes = trackNodes;
                SignalObject.signalObjects = signalObjects;
                SignalObject.trItems = TrItems;

                for (int i = 1; i < trackNodes.Length; i++)
                {
                    ScanSection(TrItems, trackNodes, i, tsectiondat, tdbfile, platformList);
                }

(the platform list is built in ScanSection). Therefore station stops are not working in tram routes with no signalling.

Tags: signals
Revision history for this message
James Ross (twpol) wrote :

I'd really like to have this fixed for 1.0, but please try and keep the fix as minimal as possible.

Changed in or:
status: New → Triaged
importance: Undecided → High
milestone: none → 1.0
Revision history for this message
Carlo Santucci (carlosanit1) wrote :

Fixed in release x3040, with a code change kept as small as possible.

Changed in or:
assignee: nobody → Carlo Santucci (carlosanit1)
status: Triaged → Fix Committed
James Ross (twpol)
Changed in or:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.