summaryrefslogtreecommitdiff
path: root/rail.h
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-07-31 22:53:57 +0000
committercelestar <celestar@openttd.org>2005-07-31 22:53:57 +0000
commit5352ad45822f4b49a03e2586474776b54873048b (patch)
treec9a9a1e3f27f68a40f4993b7913fab6b2142b6f2 /rail.h
parent21897860038c4f8487483472cd153727b6dc601c (diff)
downloadopenttd-5352ad45822f4b49a03e2586474776b54873048b.tar.xz
(svn r2774) -Codechange: Removed TRACKTYPE_SPRITE_PITCH globally and replaced it by a member of RailtypeInfo
Diffstat (limited to 'rail.h')
-rw-r--r--rail.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/rail.h b/rail.h
index 631d35e4b..753e7d001 100644
--- a/rail.h
+++ b/rail.h
@@ -159,6 +159,16 @@ typedef struct RailtypeInfo {
/** bitmask to the OTHER railtypes that can be used by an engine of THIS railtype */
byte compatible_railtypes;
+
+ /**
+ * Offset between the current railtype and normal rail. This means that:<p>
+ * 1) All the sprites in a railset MUST be in the same order. This order
+ * is determined by normal rail. Check sprites 1005 and following for this order<p>
+ * 2) The position where the railtype is loaded must always be the same, otherwise
+ * the offset will fail.<p>
+ * @note: Something more flexible might be desirable in the future.
+ */
+ SpriteID total_offset;
} RailtypeInfo;
extern const RailtypeInfo _railtypes[RAILTYPE_END];