summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-02-01 20:10:57 +0000
committerpeter1138 <peter1138@openttd.org>2008-02-01 20:10:57 +0000
commitf725b795afb17bbc532bd39c45029dfddc19837f (patch)
tree9cfec4c8951e51e5de3546fec3942129c49a882d
parent781828c1b6e62212f75fe69060b9c3d785ed555d (diff)
downloadopenttd-f725b795afb17bbc532bd39c45029dfddc19837f.tar.xz
(svn r12036) -Fix: For station tiles, only get road types for road stops.
-rw-r--r--src/station_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index c2318fa74..b5749c4b8 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -2088,7 +2088,7 @@ static void DrawTile_Station(TileInfo *ti)
total_offset = rti->total_offset;
custom_ground_offset = rti->custom_ground_offset;
} else {
- roadtypes = GetRoadTypes(ti->tile);
+ roadtypes = IsRoadStop(ti->tile) ? GetRoadTypes(ti->tile) : ROADTYPES_NONE;
total_offset = 0;
custom_ground_offset = 0;
}