summaryrefslogtreecommitdiff
path: root/src/station_map.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-10-16 19:48:58 +0000
committerrubidium <rubidium@openttd.org>2007-10-16 19:48:58 +0000
commitba7c595d846245659c569e0510c3642e88d6992c (patch)
tree45653866becd6ad493d17cf4b6e65801597a47b5 /src/station_map.h
parent4f512a70c360e2aa45e80aacdbcc95d2a754b987 (diff)
downloadopenttd-ba7c595d846245659c569e0510c3642e88d6992c.tar.xz
(svn r11276) -Codechange: be more consistent with naming of some accessors.
-Fix: make sure canals are never owned by water. Based on a patch by boekabart.
Diffstat (limited to 'src/station_map.h')
-rw-r--r--src/station_map.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/station_map.h b/src/station_map.h
index dd81c3f08..05d3abcba 100644
--- a/src/station_map.h
+++ b/src/station_map.h
@@ -154,6 +154,15 @@ static inline bool IsBuoyTile(TileIndex t)
return IsTileType(t, MP_STATION) && IsBuoy(t);
}
+static inline bool IsCanalBuoyTile(TileIndex t)
+{
+ return IsBuoyTile(t) && !IsTileOwner(t, OWNER_WATER);
+}
+
+static inline bool IsSeaBuoyTile(TileIndex t)
+{
+ return IsBuoyTile(t) && IsTileOwner(t, OWNER_WATER);
+}
static inline bool IsHangarTile(TileIndex t)
{