diff options
author | rubidium <rubidium@openttd.org> | 2007-02-14 16:37:16 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-02-14 16:37:16 +0000 |
commit | 0e8f006dc18e8faff93382fe8044d046c36e86f4 (patch) | |
tree | 1a15ba2c92fafbb76de3d76a96583953c41b088b /src/table | |
parent | 39b73119cabcaa793856b441461fd77e37c491ef (diff) | |
download | openttd-0e8f006dc18e8faff93382fe8044d046c36e86f4.tar.xz |
(svn r8735) -Feature: drive-through road stops made possible by the hard work of mart3p.
Diffstat (limited to 'src/table')
-rw-r--r-- | src/table/sprites.h | 14 | ||||
-rw-r--r-- | src/table/station_land.h | 32 |
2 files changed, 46 insertions, 0 deletions
diff --git a/src/table/sprites.h b/src/table/sprites.h index 3a7f365e1..157272c8d 100644 --- a/src/table/sprites.h +++ b/src/table/sprites.h @@ -117,6 +117,16 @@ enum Sprites { SPR_GRASS_RIGHT = SPR_AIRPORTX_BASE + 13, SPR_GRASS_LEFT = SPR_AIRPORTX_BASE + 14, + SPR_ROADSTOP_BASE = SPR_AIRPORTX_BASE + 15, // The sprites used for drive-through road stops + SPR_BUS_STOP_DT_Y_W = SPR_ROADSTOP_BASE, + SPR_BUS_STOP_DT_Y_E = SPR_ROADSTOP_BASE + 1, + SPR_BUS_STOP_DT_X_W = SPR_ROADSTOP_BASE + 2, + SPR_BUS_STOP_DT_X_E = SPR_ROADSTOP_BASE + 3, + SPR_TRUCK_STOP_DT_Y_W = SPR_ROADSTOP_BASE + 4, + SPR_TRUCK_STOP_DT_Y_E = SPR_ROADSTOP_BASE + 5, + SPR_TRUCK_STOP_DT_X_W = SPR_ROADSTOP_BASE + 6, + SPR_TRUCK_STOP_DT_X_E = SPR_ROADSTOP_BASE + 7, + /* Manager face sprites */ SPR_GRADIENT = 874, // background gradient behind manager face @@ -295,6 +305,10 @@ enum Sprites { SPR_PYLON_NS_W = SPR_ELRAIL_BASE + 37, SPR_PYLON_NS_E = SPR_ELRAIL_BASE + 38, + /* sprites for roads */ + SPR_ROAD_PAVED_STRAIGHT_Y = 1313, + SPR_ROAD_PAVED_STRAIGHT_X = 1314, + /* sprites for airports and airfields*/ /* Small airports are AIRFIELD, everything else is AIRPORT */ SPR_HELIPORT = 2633, diff --git a/src/table/station_land.h b/src/table/station_land.h index e356ce71b..1bf72f21a 100644 --- a/src/table/station_land.h +++ b/src/table/station_land.h @@ -959,6 +959,34 @@ static const DrawTileSeqStruct _station_display_datas_0163[] = { TILE_SEQ_END() }; +// drive-through truck stop X +static const DrawTileSeqStruct _station_display_datas_0168[] = { + { 1, 0, 0, 14, 3, 10, SPR_TRUCK_STOP_DT_X_W | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE }, + { 1, 13, 0, 14, 1, 10, SPR_TRUCK_STOP_DT_X_E | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE }, + TILE_SEQ_END() +}; + +// drive-through truck stop Y +static const DrawTileSeqStruct _station_display_datas_0169[] = { + { 13, 1, 0, 1, 14, 10, SPR_TRUCK_STOP_DT_Y_W | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE }, + { 0, 1, 0, 3, 14, 10, SPR_TRUCK_STOP_DT_Y_E | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE }, + TILE_SEQ_END() +}; + +// drive-through bus stop X +static const DrawTileSeqStruct _station_display_datas_0170[] = { + { 5, 0, 0, 8, 3, 10, SPR_BUS_STOP_DT_X_W | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE }, + { 5, 14, 0, 8, 1, 10, SPR_BUS_STOP_DT_X_E | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE }, + TILE_SEQ_END() +}; + +// drive-through bus stop Y +static const DrawTileSeqStruct _station_display_datas_0171[] = { + { 13, 5, 0, 1, 8, 10, SPR_BUS_STOP_DT_Y_W | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE }, + { 0, 5, 0, 3, 8, 10, SPR_BUS_STOP_DT_Y_E | (1 << PALETTE_MODIFIER_COLOR), PAL_NONE }, + TILE_SEQ_END() +}; + static const DrawTileSprites _station_display_datas[] = { { SPR_RAIL_TRACK_X, PAL_NONE, _station_display_datas_0 }, { SPR_RAIL_TRACK_Y, PAL_NONE, _station_display_datas_1 }, @@ -1128,4 +1156,8 @@ static const DrawTileSprites _station_display_datas[] = { { SPR_FLAT_GRASS_TILE, PAL_NONE, _station_display_datas_59 }, { SPR_FLAT_GRASS_TILE, PAL_NONE, _station_display_datas_60 }, { SPR_FLAT_GRASS_TILE, PAL_NONE, _station_display_datas_61 }, + { SPR_ROAD_PAVED_STRAIGHT_X, PAL_NONE, _station_display_datas_0168 }, + { SPR_ROAD_PAVED_STRAIGHT_Y, PAL_NONE, _station_display_datas_0169 }, + { SPR_ROAD_PAVED_STRAIGHT_X, PAL_NONE, _station_display_datas_0170 }, + { SPR_ROAD_PAVED_STRAIGHT_Y, PAL_NONE, _station_display_datas_0171 } }; |