summaryrefslogtreecommitdiff
path: root/rail_map.h
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-03-29 16:30:26 +0000
committercelestar <celestar@openttd.org>2006-03-29 16:30:26 +0000
commita7d8ad0004e00e1d917d636f4d69fd58f5edbfa3 (patch)
treec1903bfd394f761768fa9d907c58a76229e1b2f8 /rail_map.h
parent9c96bcb9975c4f9e197cebf0562f81de5be99b5b (diff)
downloadopenttd-a7d8ad0004e00e1d917d636f4d69fd58f5edbfa3.tar.xz
(svn r4150) -Feature: Merged elrails into trunk. Thanks to Tron for lots of code and proofreading, thanks to peter1138 for another lot of code and ideas.
Diffstat (limited to 'rail_map.h')
-rw-r--r--rail_map.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/rail_map.h b/rail_map.h
index 5a3828282..a74982cf1 100644
--- a/rail_map.h
+++ b/rail_map.h
@@ -32,13 +32,16 @@ typedef enum RailTileSubtypes {
typedef enum RailTypes {
- RAILTYPE_RAIL = 0,
- RAILTYPE_MONO = 1,
- RAILTYPE_MAGLEV = 2,
+ RAILTYPE_RAIL = 0,
+ RAILTYPE_ELECTRIC = 1,
+ RAILTYPE_MONO = 2,
+ RAILTYPE_MAGLEV = 3,
RAILTYPE_END,
INVALID_RAILTYPE = 0xFF
} RailType;
+typedef byte RailTypeMask;
+
static inline RailType GetRailType(TileIndex t)
{
return (RailType)GB(_m[t].m3, 0, 4);