(svn r2411) - Codechange: Have trains cache stuff like consist power/weight/max speed instead of recalculating it each time.
- Fix: Station ratings now depends on the max speed of a consist, without being affected by other speed limits from realistic acceleration.
This commit is contained in:
@@ -188,10 +188,8 @@ void AfterLoadVehicles(void)
|
||||
v->left_coord = INVALID_COORD;
|
||||
VehiclePositionChanged(v);
|
||||
|
||||
if (!_patches.realistic_acceleration && v->type == VEH_Train) {
|
||||
if (v->subtype == TS_Front_Engine)
|
||||
UpdateTrainAcceleration(v);
|
||||
}
|
||||
if (v->type == VEH_Train && v->subtype == TS_Front_Engine)
|
||||
TrainConsistChanged(v);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user