equal
deleted
inserted
replaced
516 |
516 |
517 SET_EXPENSES_TYPE(EXPENSES_CONSTRUCTION); |
517 SET_EXPENSES_TYPE(EXPENSES_CONSTRUCTION); |
518 |
518 |
519 if (p1 > 3) return CMD_ERROR; // check direction |
519 if (p1 > 3) return CMD_ERROR; // check direction |
520 |
520 |
521 if (!EnsureNoVehicle(tile)) return CMD_ERROR; |
|
522 |
|
523 tileh = GetTileSlope(tile, NULL); |
521 tileh = GetTileSlope(tile, NULL); |
524 if (tileh != SLOPE_FLAT && ( |
522 if (tileh != SLOPE_FLAT && ( |
525 !_patches.build_on_slopes || |
523 !_patches.build_on_slopes || |
526 IsSteepSlope(tileh) || |
524 IsSteepSlope(tileh) || |
527 !CanBuildDepotByTileh(p1, tileh) |
525 !CanBuildDepotByTileh(p1, tileh) |