summaryrefslogtreecommitdiff
path: root/tile.h
diff options
context:
space:
mode:
authormatthijs <matthijs@openttd.org>2005-06-22 22:38:18 +0000
committermatthijs <matthijs@openttd.org>2005-06-22 22:38:18 +0000
commit7549cb52714014a10f62c6d04fd8bcad21e09a33 (patch)
treea7c77399d349a4859cb2ea13be5ad9abd8fef001 /tile.h
parent3192b4becd50a0b138f431f439dcb5178edbb27b (diff)
downloadopenttd-7549cb52714014a10f62c6d04fd8bcad21e09a33.tar.xz
(svn r2473) - Add: VehicleMayEnterTile(), which checks if the tile owner of a tile is correct for a vehicle to enter it. Based upon glx's code.
- Fix: [ 1203769 ] [NPF] NPF tries to plan over bridges, through tunnels, over level crossings of other players. (glx) - Codechange: Renamed TRANSPORT_MAX to TRANSPORT_END and added INVALID_TRANSPORT. - Codechange: Moved IsLevelCrossing() from tile.h to rail.h - Add: GetCrossingTransportType(), which returns the transport type (road, rail) of both tracks on a level crossing. - Removed old TODO that was fulfilled already.
Diffstat (limited to 'tile.h')
-rw-r--r--tile.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/tile.h b/tile.h
index 24bd22dc5..dcc22aec9 100644
--- a/tile.h
+++ b/tile.h
@@ -18,7 +18,6 @@ typedef enum TileTypes {
MP_UNMOVABLE
} TileType;
-/* TODO: Find out values */
/* Direction as commonly used in v->direction, 8 way. */
typedef enum Directions {
DIR_N = 0,
@@ -116,9 +115,4 @@ static inline bool IsTileOwner(TileIndex tile, Owner owner)
return GetTileOwner(tile) == owner;
}
-static inline bool IsLevelCrossing(TileIndex tile)
-{
- return (_map5[tile] & 0xF0) == 0x10;
-}
-
#endif