“Train List” window doesn't list static trains, in “TimeTable” mode.

Bug #1577813 reported by mbm_OR
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Open Rails
New
Undecided
Unassigned

Bug Description

When we are in “TimeTable” mode, the “Train List” window (alt+F9), doesn't list static trains.

Static trains are frequent in “TimeTable” mode, while they remain waiting for their departure time.
We can see in the “DISPATCHER INFORMATION” window (shift+F5), that they are all listed (STC).
To see in “Train List” window (alt+F9) all static trains listed in “TimeTable” mode is very useful.
We can change from a train to another, to see if the “TimeTable”, is working properly.

This small improvement adds a new “if” condition into TrainListWindow.cs file.
 “ if (Owner.Viewer.Simulator.TimetableMode)
                {
                    foreach (var thisTrain in Owner.Viewer.Simulator.AI.AITrains)
                    {
                        if (thisTrain.TrainType != Train.TRAINTYPE.PLAYER && thisTrain.MovementState == AITrain.AI_MOVEMENT_STATE.AI_STATIC) . . . ”

With this patch, we include static trains in the “Trains List” window (alt+F9), and they will be shown in yellow color, like “Activity” mode.

Attached is the proposed modification patch.

Revision history for this message
mbm_OR (mauribachi) wrote :
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.