(svn r23684) -Cleanup: let the highway take the highway

This commit is contained in:
rubidium 2011-12-28 20:06:51 +00:00
parent 8d125a60ce
commit fbbfaac819
2 changed files with 0 additions and 2 deletions

View File

@ -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; if (c != NULL) c->infrastructure.rail[GetRailType(tile)] -= LEVELCROSSING_TRACKBIT_FACTOR - 1;
} else { } else {
SetRoadTypes(tile, rts); 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); MarkTileDirtyByTile(tile);
YapfNotifyTrackLayoutChange(tile, railtrack); YapfNotifyTrackLayoutChange(tile, railtrack);

View File

@ -58,7 +58,6 @@ static inline RoadTypes RoadTypeToRoadTypes(RoadType rt)
* *
* @param r The given RoadTypes * @param r The given RoadTypes
* @return The complement of 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) static inline RoadTypes ComplementRoadTypes(RoadTypes r)
{ {