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/water_cmd.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/water_cmd.cpp') diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp index ed4b2d726..4b1270797 100644 --- a/src/water_cmd.cpp +++ b/src/water_cmd.cpp @@ -610,7 +610,7 @@ static void FloodVehicle(Vehicle *v) if (!(v->vehstatus & VS_CRASHED)) { uint16 pass = 0; - if (v->type == VEH_Road) { // flood bus/truck + if (v->type == VEH_ROAD) { // flood bus/truck pass = 1; // driver if (v->cargo_type == CT_PASSENGERS) pass += v->cargo_count; @@ -618,7 +618,7 @@ static void FloodVehicle(Vehicle *v) v->vehstatus |= VS_CRASHED; v->u.road.crashed_ctr = 2000; // max 2220, disappear pretty fast RebuildVehicleLists(); - } else if (v->type == VEH_Train) { + } else if (v->type == VEH_TRAIN) { Vehicle *u; v = GetFirstVehicleInChain(v); @@ -727,7 +727,7 @@ static void ClickTile_Water(TileIndex tile) if (GetWaterTileType(tile) == WATER_TILE_DEPOT) { TileIndex tile2 = GetOtherShipDepotTile(tile); - ShowDepotWindow(tile < tile2 ? tile : tile2, VEH_Ship); + ShowDepotWindow(tile < tile2 ? tile : tile2, VEH_SHIP); } } -- cgit v1.2.3-54-g00ecf