diff options
author | peter1138 <peter1138@openttd.org> | 2009-01-13 08:39:25 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2009-01-13 08:39:25 +0000 |
commit | 56b91b582e773b43687748ea750692ccb292f946 (patch) | |
tree | d2643f5e96aa2346e6cea6b93e899332fd08248a /src/rail.h | |
parent | 37500a13f666e471081a66c837b385901888f406 (diff) | |
download | openttd-56b91b582e773b43687748ea750692ccb292f946.tar.xz |
(svn r15050) -Codechange: Use one absolute SpriteID with offsets to draw track fences.
Diffstat (limited to 'src/rail.h')
-rw-r--r-- | src/rail.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/rail.h b/src/rail.h index 099b17727..a787165ad 100644 --- a/src/rail.h +++ b/src/rail.h @@ -23,6 +23,20 @@ enum RailTypeFlags { }; DECLARE_ENUM_AS_BIT_SET(RailTypeFlags); +/** Offsets from base sprite for fence sprites. These are in the order of + * the sprites in the original data files. + */ +enum RailFenceOffset { + RFO_FLAT_X, + RFO_FLAT_Y, + RFO_FLAT_VERT, + RFO_FLAT_HORZ, + RFO_SLOPE_SW, + RFO_SLOPE_SE, + RFO_SLOPE_NE, + RFO_SLOPE_NW, +}; + /** This struct contains all the info that is needed to draw and construct tracks. */ struct RailtypeInfo { |