Reduce redundant calls to get current max speed for trains and RVs
Between ShowVisualEffect() and UpdateSpeed()
This commit is contained in:
@@ -150,7 +150,7 @@ struct RoadVehicle FINAL : public GroundVehicle<RoadVehicle, VEH_ROAD> {
|
||||
int GetCurrentMaxSpeed() const;
|
||||
int GetEffectiveMaxSpeed() const;
|
||||
int GetDisplayEffectiveMaxSpeed() const { return this->GetEffectiveMaxSpeed() / 2; }
|
||||
int UpdateSpeed();
|
||||
int UpdateSpeed(int max_speed);
|
||||
void SetDestTile(TileIndex tile);
|
||||
|
||||
inline bool IsRoadVehicleOnLevelCrossing() const
|
||||
|
Reference in New Issue
Block a user