(svn r21954) -Cleanup: remove setting to not show the vehicle speed in the vehicle view

This commit is contained in:
rubidium
2011-02-04 14:37:24 +00:00
parent 3057a26fd5
commit 2ad1279725
7 changed files with 9 additions and 25 deletions

View File

@@ -340,7 +340,7 @@ struct GroundVehicle : public SpecializedVehicle<T, Type> {
FORCEINLINE void SetLastSpeed()
{
if (this->cur_speed != this->gcache.last_speed) {
if (_settings_client.gui.vehicle_speed || (this->gcache.last_speed == 0) != (this->cur_speed == 0)) {
if ((this->gcache.last_speed == 0) != (this->cur_speed == 0)) {
SetWindowWidgetDirty(WC_VEHICLE_VIEW, this->index, VVW_WIDGET_START_STOP_VEH);
}
this->gcache.last_speed = this->cur_speed;