diff options
Diffstat (limited to 'src/table')
-rw-r--r-- | src/table/station_land.h | 18 | ||||
-rw-r--r-- | src/table/track_land.h | 19 |
2 files changed, 19 insertions, 18 deletions
diff --git a/src/table/station_land.h b/src/table/station_land.h index 15790ac3c..0d5927c68 100644 --- a/src/table/station_land.h +++ b/src/table/station_land.h @@ -737,6 +737,18 @@ static const DrawTileSeqStruct _station_display_datas_0171[] = { TILE_SEQ_END() }; +static const DrawTileSeqStruct _station_display_datas_waypoint_X[] = { + TILE_SEQ_LINE( 0, 0, 0, 16, 5, 23, SPR_WAYPOINT_X_1 | (1 << PALETTE_MODIFIER_COLOUR)) + TILE_SEQ_LINE( 0, 11, 0, 16, 5, 23, SPR_WAYPOINT_X_2 | (1 << PALETTE_MODIFIER_COLOUR)) + TILE_SEQ_END() +}; + +static const DrawTileSeqStruct _station_display_datas_waypoint_Y[] = { + TILE_SEQ_LINE( 0, 0, 0, 5, 16, 23, SPR_WAYPOINT_Y_1 | (1 << PALETTE_MODIFIER_COLOUR)) + TILE_SEQ_LINE(11, 0, 0, 5, 16, 23, SPR_WAYPOINT_Y_2 | (1 << PALETTE_MODIFIER_COLOUR)) + TILE_SEQ_END() +}; + #undef TILE_SEQ_END #undef TILE_SEQ_LINE #undef TILE_SEQ_LINE_PAL @@ -941,6 +953,11 @@ static const DrawTileSprites _station_display_datas_buoy[] = { TILE_SPRITE_LINE(SPR_FLAT_WATER_TILE, _station_display_datas_82) }; +static const DrawTileSprites _station_display_datas_waypoint[] = { + TILE_SPRITE_LINE(SPR_RAIL_TRACK_X, _station_display_datas_waypoint_X) + TILE_SPRITE_LINE(SPR_RAIL_TRACK_Y, _station_display_datas_waypoint_Y) +}; + #undef TILE_SPRITE_LINE static const DrawTileSprites *_station_display_datas[] = { @@ -951,4 +968,5 @@ static const DrawTileSprites *_station_display_datas[] = { _station_display_datas_oilrig, _station_display_datas_dock, _station_display_datas_buoy, + _station_display_datas_waypoint, }; diff --git a/src/table/track_land.h b/src/table/track_land.h index 7c2a94e3c..10eed215e 100644 --- a/src/table/track_land.h +++ b/src/table/track_land.h @@ -1,6 +1,6 @@ /* $Id$ */ -/** @file track_land.h Sprites to use and how to display them for train depot/waypoint tiles. */ +/** @file track_land.h Sprites to use and how to display them for train depot tiles. */ #define TILE_SEQ_LINE(img, dx, dy, sx, sy) { dx, dy, 0, sx, sy, 23, {img, PAL_NONE} }, #define TILE_SEQ_END() { (int8)0x80, 0, 0, 0, 0, 0, {0, 0} } @@ -42,23 +42,6 @@ static const DrawTileSprites _depot_invisible_gfx_table[] = { { {SPR_RAIL_TRACK_Y, PAL_NONE}, _depot_gfx_NW } }; -static const DrawTileSeqStruct _waypoint_gfx_X[] = { - TILE_SEQ_LINE((1 << PALETTE_MODIFIER_COLOUR) | SPR_WAYPOINT_X_1, 0, 0, 16, 5) - TILE_SEQ_LINE((1 << PALETTE_MODIFIER_COLOUR) | SPR_WAYPOINT_X_2, 0, 11, 16, 5) - TILE_SEQ_END() -}; - -static const DrawTileSeqStruct _waypoint_gfx_Y[] = { - TILE_SEQ_LINE((1 << PALETTE_MODIFIER_COLOUR) | SPR_WAYPOINT_Y_1, 0, 0, 5, 16) - TILE_SEQ_LINE((1 << PALETTE_MODIFIER_COLOUR) | SPR_WAYPOINT_Y_2, 11, 0, 5, 16) - TILE_SEQ_END() -}; - -static const DrawTileSprites _waypoint_gfx_table[] = { - { {SPR_RAIL_TRACK_X, PAL_NONE}, _waypoint_gfx_X }, - { {SPR_RAIL_TRACK_Y, PAL_NONE}, _waypoint_gfx_Y } -}; - #undef TILE_SEQ_LINE #undef TILE_SEQ_END |