summaryrefslogtreecommitdiff
path: root/rail.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-10-13 16:00:14 +0000
committertron <tron@openttd.org>2005-10-13 16:00:14 +0000
commit7520ef8f3325bcaec2496e52e0d351767193da28 (patch)
treeee9f710faeaacffe616dd886460d095de751bb0d /rail.h
parentd37639ac3eab8c7d8deb37ff9b7784f57aa580d4 (diff)
downloadopenttd-7520ef8f3325bcaec2496e52e0d351767193da28.tar.xz
(svn r3037) Don't deduce the sprites for tunnels and level crossings from magic numbers, but fetch them from the central rail info array. This is a preparation step for electrified rails
Diffstat (limited to 'rail.h')
-rw-r--r--rail.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/rail.h b/rail.h
index be03813be..215a291dd 100644
--- a/rail.h
+++ b/rail.h
@@ -154,6 +154,8 @@ typedef struct RailtypeInfo {
SpriteID single_s; ///< single piece of rail in the southern corner
SpriteID single_e; ///< single piece of rail in the eastern corner
SpriteID single_w; ///< single piece of rail in the western corner
+ SpriteID crossing; ///< level crossing, rail in X direction
+ SpriteID tunnel; ///< tunnel sprites base
} base_sprites;
/** struct containing the sprites for the rail GUI. @note only sprites referred to