From 7549cb52714014a10f62c6d04fd8bcad21e09a33 Mon Sep 17 00:00:00 2001 From: matthijs Date: Wed, 22 Jun 2005 22:38:18 +0000 Subject: (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. --- openttd.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'openttd.h') diff --git a/openttd.h b/openttd.h index 6811ebf4e..c8776118e 100644 --- a/openttd.h +++ b/openttd.h @@ -106,7 +106,8 @@ typedef enum TransportTypes { TRANSPORT_RAIL = 0, TRANSPORT_ROAD = 1, TRANSPORT_WATER, // = 2 - TRANSPORT_MAX // = 3 + TRANSPORT_END, + INVALID_TRANSPORT = 0xff, } TransportType; typedef struct TileInfo { -- cgit v1.2.3-54-g00ecf