From 898e879bd90e34505cd7083acecf341fd798d02c Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sun, 7 Feb 2010 22:22:54 +0000 Subject: (svn r19056) -Add: [NewGRF] Action 3/2/1 (i.e. new graphics) support for rail types. (To be documented...) --- src/table/railtypes.h | 8 ++++++++ src/table/road_land.h | 14 ++++++++++++++ 2 files changed, 22 insertions(+) (limited to 'src/table') diff --git a/src/table/railtypes.h b/src/table/railtypes.h index a01200a05..75d69ee69 100644 --- a/src/table/railtypes.h +++ b/src/table/railtypes.h @@ -89,6 +89,8 @@ static const RailtypeInfo _original_railtypes[] = { /* rail type label */ 'RAIL', + + { NULL }, }, /** Electrified railway */ @@ -167,6 +169,8 @@ static const RailtypeInfo _original_railtypes[] = { /* rail type label */ 'ELRL', + + { NULL }, }, /** Monorail */ @@ -241,6 +245,8 @@ static const RailtypeInfo _original_railtypes[] = { /* rail type label */ 'MONO', + + { NULL }, }, /** Maglev */ @@ -315,6 +321,8 @@ static const RailtypeInfo _original_railtypes[] = { /* rail type label */ 'MGLV', + + { NULL }, }, }; 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 -- cgit v1.2.3-54-g00ecf