diff options
-rw-r--r-- | src/vehicle_gui.cpp | 6 | ||||
-rw-r--r-- | src/vehicle_gui.h | 2 | ||||
-rw-r--r-- | src/vehiclelist.cpp | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index d2e262666..6ccc7ce79 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -800,7 +800,7 @@ struct VehicleListWindow : public Window, public VehicleListBase { } break; - case VLM_WAYPOINT_LIST: + case VLW_WAYPOINT_LIST: this->widget[VLW_WIDGET_CAPTION].data = STR_WAYPOINT_VIEWPORT; break; @@ -899,7 +899,7 @@ struct VehicleListWindow : public Window, public VehicleListBase { SetDParam(1, this->vscroll.count); break; - case VLM_WAYPOINT_LIST: + case VLW_WAYPOINT_LIST: SetDParam(0, index); break; @@ -1180,7 +1180,7 @@ void ShowVehicleListWindow(PlayerID player, VehicleType vehicle_type) void ShowVehicleListWindow(const Waypoint *wp) { if (wp == NULL) return; - ShowVehicleListWindowLocal(GetTileOwner(wp->xy), VLM_WAYPOINT_LIST, VEH_TRAIN, wp->index); + ShowVehicleListWindowLocal(GetTileOwner(wp->xy), VLW_WAYPOINT_LIST, VEH_TRAIN, wp->index); } void ShowVehicleListWindow(const Vehicle *v) diff --git a/src/vehicle_gui.h b/src/vehicle_gui.h index a6c35cdc7..1d11b349a 100644 --- a/src/vehicle_gui.h +++ b/src/vehicle_gui.h @@ -52,7 +52,7 @@ enum { VLW_STATION_LIST = 2 << 8, VLW_DEPOT_LIST = 3 << 8, VLW_GROUP_LIST = 4 << 8, - VLM_WAYPOINT_LIST = 5 << 8, + VLW_WAYPOINT_LIST = 5 << 8, VLW_MASK = 0x700, }; diff --git a/src/vehiclelist.cpp b/src/vehiclelist.cpp index 14798b655..46762b247 100644 --- a/src/vehiclelist.cpp +++ b/src/vehiclelist.cpp @@ -67,7 +67,7 @@ void BuildDepotVehicleList(VehicleType type, TileIndex tile, VehicleList *engine * <li>VLW_STANDARD: not used<li> * <li>VLW_DEPOT_LIST: TileIndex of the depot/hangar to make the list for</li> * <li>VLW_GROUP_LIST: index of group to generate a list for</li> - * <li>VLM_WAYPOINT_LIST: index of waypoint to generate a list for</li> + * <li>VLW_WAYPOINT_LIST: index of waypoint to generate a list for</li> * </ul> * @param window_type The type of window the list is for, using the VLW_ flags in vehicle_gui.h */ @@ -123,7 +123,7 @@ void GenerateVehicleSortList(VehicleList *list, VehicleType type, PlayerID owner } break; - case VLM_WAYPOINT_LIST: + case VLW_WAYPOINT_LIST: FOR_ALL_VEHICLES(v) { if (v->type == type && v->IsPrimaryVehicle()) { const Order *order; |