summaryrefslogtreecommitdiff
path: root/src/yapf/yapf_costbase.hpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-15 00:32:18 +0000
committerrubidium <rubidium@openttd.org>2009-03-15 00:32:18 +0000
commitc3e87f345ddd60082d6470f6401a1659094a3011 (patch)
tree776122508c686680b9c97f37ba3cb92ef905d67f /src/yapf/yapf_costbase.hpp
parent332846e9e28924314443850b4ca646261882cca0 (diff)
downloadopenttd-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.hpp8
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 */
};