summaryrefslogtreecommitdiff
path: root/src/table/road_land.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2010-02-07 22:22:54 +0000
committerpeter1138 <peter1138@openttd.org>2010-02-07 22:22:54 +0000
commit898e879bd90e34505cd7083acecf341fd798d02c (patch)
treef9c016c9dcb7d2e78726296e15aceb6adf4a0e2c /src/table/road_land.h
parent01474412fc95b69ea6595a94eeb8baa0db575e16 (diff)
downloadopenttd-898e879bd90e34505cd7083acecf341fd798d02c.tar.xz
(svn r19056) -Add: [NewGRF] Action 3/2/1 (i.e. new graphics) support for rail types. (To be documented...)
Diffstat (limited to 'src/table/road_land.h')
-rw-r--r--src/table/road_land.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/table/road_land.h b/src/table/road_land.h
index e6ec411bd..19b8f5711 100644
--- a/src/table/road_land.h
+++ b/src/table/road_land.h
@@ -70,6 +70,20 @@ static const DrawTileSprites _tram_depot[] = {
{ {0xA4A, PAL_NONE}, _tram_depot_NW }
};
+/* Sprite layout for level crossings. The SpriteIDs are actually offsets
+ * from the base SpriteID returned from the NewGRF sprite resolver. */
+static const DrawTileSeqStruct _crossing_layout_ALL[] = {
+ TILE_SEQ_LINE(2, PAL_NONE, 0, 0, 3, 3)
+ TILE_SEQ_LINE(4, PAL_NONE, 0, 13, 3, 3)
+ TILE_SEQ_LINE(6, PAL_NONE, 13, 0, 3, 3)
+ TILE_SEQ_LINE(8, PAL_NONE, 13, 13, 3, 3)
+ TILE_SEQ_END()
+};
+
+static const DrawTileSprites _crossing_layout = {
+ {0, PAL_NONE}, _crossing_layout_ALL
+};
+
#undef TILE_SEQ_LINE
#undef TILE_SEQ_END