Reduce redundant calls to get current max speed for trains and RVs
Between ShowVisualEffect() and UpdateSpeed()
This commit is contained in:
@@ -185,15 +185,15 @@ struct Train FINAL : public GroundVehicle<Train, VEH_TRAIN> {
|
||||
|
||||
void ConsistChanged(ConsistChangeFlags allowed_changes);
|
||||
|
||||
int UpdateSpeed();
|
||||
|
||||
void UpdateAcceleration();
|
||||
|
||||
struct MaxSpeedInfo {
|
||||
int strict_max_speed;
|
||||
int advisory_max_speed;
|
||||
};
|
||||
|
||||
int UpdateSpeed(MaxSpeedInfo max_speed_info);
|
||||
|
||||
void UpdateAcceleration();
|
||||
|
||||
bool ConsistNeedsRepair() const;
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user