From ce919e8c719f0f698ac86dcaa528368316f2e52d Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 8 Mar 2007 16:27:54 +0000 Subject: (svn r9068) -Codechange: capitalize the VEH_Train etc. enums to match the coding style (and rest of the code). --- src/newgrf.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/newgrf.cpp') diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 56ed3988a..ea30c6eec 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -3872,7 +3872,7 @@ static void CalculateRefitMasks() } else { // Don't apply default refit mask to wagons or engines with no capacity if (xor_mask == 0 && ( - GetEngine(engine)->type != VEH_Train || ( + GetEngine(engine)->type != VEH_TRAIN || ( RailVehInfo(engine)->capacity != 0 && RailVehInfo(engine)->railveh_type != RAILVEH_WAGON ) @@ -3895,17 +3895,17 @@ static void CalculateRefitMasks() /* Check if this engine's cargo type is valid. If not, set to the first refittable * cargo type. Apparently cargo_type isn't a common property... */ switch (GetEngine(engine)->type) { - case VEH_Train: { + case VEH_TRAIN: { RailVehicleInfo *rvi = &_rail_vehicle_info[engine]; if (rvi->cargo_type == CT_INVALID) rvi->cargo_type = FindFirstRefittableCargo(engine); break; } - case VEH_Road: { + case VEH_ROAD: { RoadVehicleInfo *rvi = &_road_vehicle_info[engine - ROAD_ENGINES_INDEX]; if (rvi->cargo_type == CT_INVALID) rvi->cargo_type = FindFirstRefittableCargo(engine); break; } - case VEH_Ship: { + case VEH_SHIP: { ShipVehicleInfo *svi = &_ship_vehicle_info[engine - SHIP_ENGINES_INDEX]; if (svi->cargo_type == CT_INVALID) svi->cargo_type = FindFirstRefittableCargo(engine); break; -- cgit v1.2.3-70-g09d2