diff options
author | belugas <belugas@openttd.org> | 2008-02-27 15:35:24 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2008-02-27 15:35:24 +0000 |
commit | 8f47b642b646944554edbd85ffc16a13f87561ad (patch) | |
tree | 9a15b877fb5c04bbea60178b315a89d337985d33 /src | |
parent | 46a3508f50c49e6fe8208b544e4eaac5ddd519a6 (diff) | |
download | openttd-8f47b642b646944554edbd85ffc16a13f87561ad.tar.xz |
(svn r12290) -Fix[FS#1807]: Do not draw trees nor lamps between tram tracks.(Roujin)
Diffstat (limited to 'src')
-rw-r--r-- | src/road_cmd.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp index 69c481a51..356d11335 100644 --- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -1065,8 +1065,11 @@ static void DrawRoadBits(TileInfo* ti) if (height < minz) return; } + /* If there are no road bits, return, as there is nothing left to do */ + if (CountBits(road) < 2) return; + /* Draw extra details. */ - for (drts = _road_display_table[roadside][road]; drts->image != 0; drts++) { + for (drts = _road_display_table[roadside][road | tram]; drts->image != 0; drts++) { DrawRoadDetail(drts->image, ti, drts->subcoord_x, drts->subcoord_y, 0x10); } } |