(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
This commit is contained in:
@@ -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 */
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user