diff options
Diffstat (limited to 'src/yapf/yapf_costbase.hpp')
-rw-r--r-- | src/yapf/yapf_costbase.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/yapf/yapf_costbase.hpp b/src/yapf/yapf_costbase.hpp index c2d26ff38..4bb07e9fc 100644 --- a/src/yapf/yapf_costbase.hpp +++ b/src/yapf/yapf_costbase.hpp @@ -10,14 +10,14 @@ struct CYapfCostBase { { if (IsDiagonalTrackdir(td)) { if (IsBridgeTile(tile)) { - // it is bridge ramp, check if we are entering the bridge + /* it is bridge ramp, check if we are entering the bridge */ if (GetTunnelBridgeDirection(tile) != TrackdirToExitdir(td)) return false; // no, we are leaving it, no penalty - // we are entering the bridge + /* we are entering the bridge */ Slope tile_slope = GetTileSlope(tile, NULL); Axis axis = DiagDirToAxis(GetTunnelBridgeDirection(tile)); return !HasBridgeFlatRamp(tile_slope, axis); } else { - // not bridge ramp + /* not bridge ramp */ if (IsTunnelTile(tile)) return false; // tunnel entry/exit doesn't slope Slope tile_slope = GetTileSlope(tile, NULL); return IsUphillTrackdir(tile_slope, td); // slopes uphill => apply penalty @@ -28,7 +28,7 @@ struct CYapfCostBase { }; struct CostRailSettings { - // look-ahead signal penalty + /* look-ahead signal penalty */ }; |