[Rseding91] [0.16.6] Train max_speed calculation is wrong
Posted: Wed Dec 20, 2017 4:26 pm
When fueling a multi-locomotive train the max_speed is only averaged for 'fuel_top_speed_multiplier!=1.0' locomotives. This means if you have two locomotives, one fueled with Nuclear fuel and the other with Coal it runs at 298.1km/h, but a train with Nuclear fuel and Rocket fuel runs at 285.1km/h.
The relevant code is in 'void Train::updateMaxSpeed(void)', the if statement probably should check for 'fuel_top_speed_multiplier!=0.0', or something similar.
The relevant code is in 'void Train::updateMaxSpeed(void)', the if statement probably should check for 'fuel_top_speed_multiplier!=0.0', or something similar.