summaryrefslogtreecommitdiff
path: root/src/station_map.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-10-10 20:09:29 +0000
committerfrosch <frosch@openttd.org>2008-10-10 20:09:29 +0000
commit70e1e83eb272c66ab9994b3d3781059e31de9c38 (patch)
treee5d47c944dcf6707557d2c96043d1d5f5705974b /src/station_map.h
parenta34bd150fe85f54ec15c975231dceef260511ff6 (diff)
downloadopenttd-70e1e83eb272c66ab9994b3d3781059e31de9c38.tar.xz
(svn r14456) -Fix: Obiwan in catchment-area and station-spread of docks.
Diffstat (limited to 'src/station_map.h')
-rw-r--r--src/station_map.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/station_map.h b/src/station_map.h
index 77d427958..0f3ff0721 100644
--- a/src/station_map.h
+++ b/src/station_map.h
@@ -165,6 +165,11 @@ static inline bool IsDock(TileIndex t)
return GetStationType(t) == STATION_DOCK;
}
+static inline bool IsDockTile(TileIndex t)
+{
+ return IsTileType(t, MP_STATION) && GetStationType(t) == STATION_DOCK;
+}
+
static inline bool IsBuoy(TileIndex t)
{
return GetStationType(t) == STATION_BUOY;