Unnecessary checks on Simulation.Timetable
Bug #1838233 reported by
r.roeterdink
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Open Rails |
Fix Released
|
Undecided
|
r.roeterdink |
Bug Description
There are a number of unnecessary checks on Simulation.
These checks are not required because :
- other checks in the relevant 'if' statement are such that they can either only occur if Simulation.
- the method called following the 'if' statement has separate instances for classes Train.cs and TTTrain.cs
Changed in or: | |
status: | In Progress → Fix Committed |
Changed in or: | |
milestone: | none → 1.4 |
Changed in or: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The superflous checks have been removed. ClearNode) , a new instanced method (TrainGetSectio nStateClearNode ) has been created to remove the need for the 'if' statement.
In one situation (method GetSectionState