diff options
author | rubidium <rubidium@openttd.org> | 2009-03-15 00:32:18 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-15 00:32:18 +0000 |
commit | c3e87f345ddd60082d6470f6401a1659094a3011 (patch) | |
tree | 776122508c686680b9c97f37ba3cb92ef905d67f /src/yapf/yapf_costbase.hpp | |
parent | 332846e9e28924314443850b4ca646261882cca0 (diff) | |
download | openttd-c3e87f345ddd60082d6470f6401a1659094a3011.tar.xz |
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
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 */ }; |