summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-12-28 20:06:51 +0000
committerrubidium <rubidium@openttd.org>2011-12-28 20:06:51 +0000
commitfbbfaac819f1e3bd6aab2351433249bb4e8dac6d (patch)
tree5d0c49c6be1dfe1a84209cf89cd1fee8df8804b3
parent8d125a60ce2d97be1ce05c713cb3cdcc248a36dd (diff)
downloadopenttd-fbbfaac819f1e3bd6aab2351433249bb4e8dac6d.tar.xz
(svn r23684) -Cleanup: let the highway take the highway
-rw-r--r--src/road_cmd.cpp1
-rw-r--r--src/road_func.h1
2 files changed, 0 insertions, 2 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp
index 509480845..07e3f00a3 100644
--- a/src/road_cmd.cpp
+++ b/src/road_cmd.cpp
@@ -384,7 +384,6 @@ static CommandCost RemoveRoad(TileIndex tile, DoCommandFlag flags, RoadBits piec
if (c != NULL) c->infrastructure.rail[GetRailType(tile)] -= LEVELCROSSING_TRACKBIT_FACTOR - 1;
} else {
SetRoadTypes(tile, rts);
- /* If we ever get HWAY and it is possible without road then we will need to promote ownership and invalidate town index here, too */
}
MarkTileDirtyByTile(tile);
YapfNotifyTrackLayoutChange(tile, railtrack);
diff --git a/src/road_func.h b/src/road_func.h
index 126ab5c82..3951f3c05 100644
--- a/src/road_func.h
+++ b/src/road_func.h
@@ -58,7 +58,6 @@ static inline RoadTypes RoadTypeToRoadTypes(RoadType rt)
*
* @param r The given RoadTypes
* @return The complement of the given RoadTypes
- * @note The unused value ROADTYPES_HWAY will be used, too.
*/
static inline RoadTypes ComplementRoadTypes(RoadTypes r)
{