diff options
author | rubidium <rubidium@openttd.org> | 2007-10-16 19:48:58 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-10-16 19:48:58 +0000 |
commit | ba7c595d846245659c569e0510c3642e88d6992c (patch) | |
tree | 45653866becd6ad493d17cf4b6e65801597a47b5 /src/station_map.h | |
parent | 4f512a70c360e2aa45e80aacdbcc95d2a754b987 (diff) | |
download | openttd-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.h | 9 |
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) { |