diff options
author | smatz <smatz@openttd.org> | 2008-01-18 13:02:47 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-01-18 13:02:47 +0000 |
commit | 1d59439166df456e7c886b599eaf3328aef4ad33 (patch) | |
tree | 6f71f95cb20d1693e9d00ae92731d8f772f8f6ac /src/vehicle.cpp | |
parent | 68707808c015db1cda0723882ffce99977d4593c (diff) | |
download | openttd-1d59439166df456e7c886b599eaf3328aef4ad33.tar.xz |
(svn r11916) -Codechange: use enums from VehicleViewWindowWidgets instead of constants
-Fix: refit button widget was not correctly updated
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index d551bda88..0f31224c1 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -3131,7 +3131,7 @@ void Vehicle::BeginLoading() VehiclePayment(this); InvalidateWindow(this->GetVehicleListWindowClass(), this->owner); - InvalidateWindowWidget(WC_VEHICLE_VIEW, this->index, STATUS_BAR); + InvalidateWindowWidget(WC_VEHICLE_VIEW, this->index, VVW_WIDGET_START_STOP_VEH); InvalidateWindow(WC_VEHICLE_DETAILS, this->index); InvalidateWindow(WC_STATION_VIEW, this->last_station_visited); @@ -3222,7 +3222,7 @@ void StopAllVehicles() /* Code ripped from CmdStartStopTrain. Can't call it, because of * ownership problems, so we'll duplicate some code, for now */ v->vehstatus |= VS_STOPPED; - InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, STATUS_BAR); + InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, VVW_WIDGET_START_STOP_VEH); InvalidateWindow(WC_VEHICLE_DEPOT, v->tile); } } |