diff options
author | peter1138 <peter1138@openttd.org> | 2010-03-16 06:43:41 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2010-03-16 06:43:41 +0000 |
commit | 604da97364d9b6ceb77624bb208b3c432494caf4 (patch) | |
tree | a093d78297350a5e3866ec47b1082d323c17bb41 /src/road_cmd.cpp | |
parent | 0dd811048454b374291d8ba13449cdcafff40ed0 (diff) | |
download | openttd-604da97364d9b6ceb77624bb208b3c432494caf4.tar.xz |
(svn r19434) -Add: Add rail speed limit to land area information window.
Diffstat (limited to 'src/road_cmd.cpp')
-rw-r--r-- | src/road_cmd.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp index 5f985babc..f70808d67 100644 --- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -1531,6 +1531,10 @@ static void GetTileDesc_Road(TileIndex tile, TileDesc *td) rail_owner = GetTileOwner(tile); if (HasBit(rts, ROADTYPE_ROAD)) road_owner = GetRoadOwner(tile, ROADTYPE_ROAD); if (HasBit(rts, ROADTYPE_TRAM)) tram_owner = GetRoadOwner(tile, ROADTYPE_TRAM); + + const RailtypeInfo *rti = GetRailTypeInfo(GetRailType(tile)); + td->rail_speed = rti->max_speed; + break; } |