diff options
Diffstat (limited to 'src/water_cmd.cpp')
-rw-r--r-- | src/water_cmd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); } } |