summaryrefslogtreecommitdiff
path: root/tile.h
diff options
context:
space:
mode:
authormatthijs <matthijs@openttd.org>2005-05-02 18:53:06 +0000
committermatthijs <matthijs@openttd.org>2005-05-02 18:53:06 +0000
commit3b3a2b890f82c8978f8d0f4579ba8372a9925af4 (patch)
tree3803f1b217464299f3576f9ba97efb8df19e66d9 /tile.h
parent5a35c8cc4e6598a98f6c78c4126fd7d12cd9e46e (diff)
downloadopenttd-3b3a2b890f82c8978f8d0f4579ba8372a9925af4.tar.xz
(svn r2253) - Fix: [ 1190896 1184378 ] [NPF] Trains ignoring their railtype (mono, maglev) (glx)
Diffstat (limited to 'tile.h')
-rw-r--r--tile.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/tile.h b/tile.h
index 3752ed29f..d7194d9d7 100644
--- a/tile.h
+++ b/tile.h
@@ -18,6 +18,18 @@ typedef enum TileType {
MP_UNMOVABLE
} TileType;
+/* XXX: This should be moved out to a new file (rail.h) along with some other
+ * cleanups. I'll do that after 0.4) */
+typedef enum {
+ RAILTYPE_RAIL = 0,
+ RAILTYPE_MONO = 1,
+ RAILTYPE_MAGLEV = 2,
+ RAILTYPE_END,
+ RAILTYPE_MASK = 0x3,
+ INVALID_RAILTYPE = 0xFF,
+} RailType;
+
+
void SetMapExtraBits(TileIndex tile, byte flags);
uint GetMapExtraBits(TileIndex tile);