summaryrefslogtreecommitdiff
path: root/rail.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-04-11 10:45:06 +0000
committerpeter1138 <peter1138@openttd.org>2006-04-11 10:45:06 +0000
commit5f24141cb8ca3fbf7fcce9a30378f938e9206e03 (patch)
tree0906f88869bf7275770611edc4c0286f0131312f /rail.h
parentda428dca703d9c5e8c948bbab9adbb6e7b10d29f (diff)
downloadopenttd-5f24141cb8ca3fbf7fcce9a30378f938e9206e03.tar.xz
(svn r4354) [Elrail][NewGRF] Codechange: Drawing of custom waypoints with custom ground sprites used the index of the rail type as an offset. With the introduction of elrails this offset is incorrect, so instead there is now a lookup table within the RailTypeInfo struct to explicitly list the offset.
Diffstat (limited to 'rail.h')
-rw-r--r--rail.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/rail.h b/rail.h
index fa95fdd27..9ea050f04 100644
--- a/rail.h
+++ b/rail.h
@@ -129,6 +129,11 @@ typedef struct RailtypeInfo {
* Bridge offset
*/
SpriteID bridge_offset;
+
+ /**
+ * Offset to add to ground sprite when drawing custom waypoints / stations
+ */
+ byte custom_ground_offset;
} RailtypeInfo;
extern const RailtypeInfo _railtypes[RAILTYPE_END];