summaryrefslogtreecommitdiff
path: root/table
diff options
context:
space:
mode:
Diffstat (limited to 'table')
-rw-r--r--table/bridge_land.h200
-rw-r--r--table/sprites.h22
-rw-r--r--table/station_land.h2
-rw-r--r--table/track_land.h8
4 files changed, 126 insertions, 106 deletions
diff --git a/table/bridge_land.h b/table/bridge_land.h
index d3e35c231..a40055b60 100644
--- a/table/bridge_land.h
+++ b/table/bridge_land.h
@@ -45,18 +45,18 @@ static const PalSpriteID _bridge_sprite_table_2_1[] = {
};
static const PalSpriteID _bridge_sprite_table_2_poles[] = {
- SPR_OPENTTD_BASE + 36 + 6*3,
- SPR_OPENTTD_BASE + 36 + 6*3,
- SPR_OPENTTD_BASE + 36 + 6*3,
- SPR_OPENTTD_BASE + 36 + 6*3,
- SPR_OPENTTD_BASE + 38 + 6*3,
+ SPR_PILLARS_BASE + 6 * 3 + 3,
+ SPR_PILLARS_BASE + 6 * 3 + 3,
+ SPR_PILLARS_BASE + 6 * 3 + 3,
+ SPR_PILLARS_BASE + 6 * 3 + 3,
+ SPR_PILLARS_BASE + 6 * 3 + 5,
0x0,
- SPR_OPENTTD_BASE + 33 + 6*3,
- SPR_OPENTTD_BASE + 33 + 6*3,
- SPR_OPENTTD_BASE + 33 + 6*3,
- SPR_OPENTTD_BASE + 33 + 6*3,
- SPR_OPENTTD_BASE + 35 + 6*3,
+ SPR_PILLARS_BASE + 6 * 3 + 0,
+ SPR_PILLARS_BASE + 6 * 3 + 0,
+ SPR_PILLARS_BASE + 6 * 3 + 0,
+ SPR_PILLARS_BASE + 6 * 3 + 0,
+ SPR_PILLARS_BASE + 6 * 3 + 2,
0x0,
0x0,
@@ -113,18 +113,18 @@ static const PalSpriteID _bridge_sprite_table_4_6[] = {
};
static const PalSpriteID _bridge_sprite_table_4_poles[] = {
- SPR_OPENTTD_BASE + 36,
- SPR_OPENTTD_BASE + 37,
- SPR_OPENTTD_BASE + 37,
- SPR_OPENTTD_BASE + 36,
- SPR_OPENTTD_BASE + 38,
+ SPR_PILLARS_BASE + 6 * 0 + 3,
+ SPR_PILLARS_BASE + 6 * 0 + 4,
+ SPR_PILLARS_BASE + 6 * 0 + 4,
+ SPR_PILLARS_BASE + 6 * 0 + 3,
+ SPR_PILLARS_BASE + 6 * 0 + 5,
0x0,
- SPR_OPENTTD_BASE + 33,
- SPR_OPENTTD_BASE + 34,
- SPR_OPENTTD_BASE + 34,
- SPR_OPENTTD_BASE + 33,
- SPR_OPENTTD_BASE + 35,
+ SPR_PILLARS_BASE + 6 * 0 + 0,
+ SPR_PILLARS_BASE + 6 * 0 + 1,
+ SPR_PILLARS_BASE + 6 * 0 + 1,
+ SPR_PILLARS_BASE + 6 * 0 + 0,
+ SPR_PILLARS_BASE + 6 * 0 + 2,
0x0,
0x0,
@@ -136,7 +136,7 @@ static const PalSpriteID _bridge_sprite_table_5_0[] = {
0x99D | PALETTE_TO_STRUCT_YELLOW, 0x99F | PALETTE_TO_STRUCT_YELLOW, 0x9B1 | PALETTE_TO_STRUCT_YELLOW, 0x0, 0x995 | PALETTE_TO_STRUCT_YELLOW, 0x997 | PALETTE_TO_STRUCT_YELLOW, 0x9AD | PALETTE_TO_STRUCT_YELLOW, 0x0,
0x10F2 | PALETTE_TO_STRUCT_YELLOW, 0x99F | PALETTE_TO_STRUCT_YELLOW, 0x9B1 | PALETTE_TO_STRUCT_YELLOW, 0x0, 0x10EE | PALETTE_TO_STRUCT_YELLOW, 0x997 | PALETTE_TO_STRUCT_YELLOW, 0x9AD | PALETTE_TO_STRUCT_YELLOW, 0x0,
0x111A | PALETTE_TO_STRUCT_YELLOW, 0x99F | PALETTE_TO_STRUCT_YELLOW, 0x9B1 | PALETTE_TO_STRUCT_YELLOW, 0x0, 0x1116 | PALETTE_TO_STRUCT_YELLOW, 0x997 | PALETTE_TO_STRUCT_YELLOW, 0x9AD | PALETTE_TO_STRUCT_YELLOW, 0x0,
- SPR_OPENTTD_BASE + 35,
+ SPR_PILLARS_BASE + 2
};
static const PalSpriteID _bridge_sprite_table_5_1[] = {
@@ -144,7 +144,7 @@ static const PalSpriteID _bridge_sprite_table_5_1[] = {
0x99E | PALETTE_TO_STRUCT_YELLOW, 0x9A0 | PALETTE_TO_STRUCT_YELLOW, 0x9B2 | PALETTE_TO_STRUCT_YELLOW, 0x0, 0x996 | PALETTE_TO_STRUCT_YELLOW, 0x998 | PALETTE_TO_STRUCT_YELLOW, 0x9AE | PALETTE_TO_STRUCT_YELLOW, 0x0,
0x10F3 | PALETTE_TO_STRUCT_YELLOW, 0x9A0 | PALETTE_TO_STRUCT_YELLOW, 0x9B2 | PALETTE_TO_STRUCT_YELLOW, 0x0, 0x10EF | PALETTE_TO_STRUCT_YELLOW, 0x998 | PALETTE_TO_STRUCT_YELLOW, 0x9AE | PALETTE_TO_STRUCT_YELLOW, 0x0,
0x111B | PALETTE_TO_STRUCT_YELLOW, 0x9A0 | PALETTE_TO_STRUCT_YELLOW, 0x9B2 | PALETTE_TO_STRUCT_YELLOW, 0x0, 0x1117 | PALETTE_TO_STRUCT_YELLOW, 0x998 | PALETTE_TO_STRUCT_YELLOW, 0x9AE | PALETTE_TO_STRUCT_YELLOW, 0x0,
- SPR_OPENTTD_BASE + 36,
+ SPR_PILLARS_BASE + 3
};
static const PalSpriteID _bridge_sprite_table_5_2[] = {
@@ -152,7 +152,7 @@ static const PalSpriteID _bridge_sprite_table_5_2[] = {
0x9A2 | PALETTE_TO_STRUCT_YELLOW, 0x9A4 | PALETTE_TO_STRUCT_YELLOW, 0x9B4 | PALETTE_TO_STRUCT_YELLOW, 0x0, 0x99A | PALETTE_TO_STRUCT_YELLOW, 0x99C | PALETTE_TO_STRUCT_YELLOW, 0x9B0 | PALETTE_TO_STRUCT_YELLOW, 0x0,
0x10F5 | PALETTE_TO_STRUCT_YELLOW, 0x9A4 | PALETTE_TO_STRUCT_YELLOW, 0x9B4 | PALETTE_TO_STRUCT_YELLOW, 0x0, 0x10F1 | PALETTE_TO_STRUCT_YELLOW, 0x99C | PALETTE_TO_STRUCT_YELLOW, 0x9B0 | PALETTE_TO_STRUCT_YELLOW, 0x0,
0x111D | PALETTE_TO_STRUCT_YELLOW, 0x9A4 | PALETTE_TO_STRUCT_YELLOW, 0x9B4 | PALETTE_TO_STRUCT_YELLOW, 0x0, 0x1119 | PALETTE_TO_STRUCT_YELLOW, 0x99C | PALETTE_TO_STRUCT_YELLOW, 0x9B0 | PALETTE_TO_STRUCT_YELLOW, 0x0,
- SPR_OPENTTD_BASE + 36,
+ SPR_PILLARS_BASE + 3
};
static const PalSpriteID _bridge_sprite_table_5_3[] = {
@@ -160,7 +160,7 @@ static const PalSpriteID _bridge_sprite_table_5_3[] = {
0x9A1 | PALETTE_TO_STRUCT_YELLOW, 0x9A3 | PALETTE_TO_STRUCT_YELLOW, 0x9B3 | PALETTE_TO_STRUCT_YELLOW, 0x0, 0x999 | PALETTE_TO_STRUCT_YELLOW, 0x99B | PALETTE_TO_STRUCT_YELLOW, 0x9AF | PALETTE_TO_STRUCT_YELLOW, 0x0,
0x10F4 | PALETTE_TO_STRUCT_YELLOW, 0x9A3 | PALETTE_TO_STRUCT_YELLOW, 0x9B3 | PALETTE_TO_STRUCT_YELLOW, 0x0, 0x10F0 | PALETTE_TO_STRUCT_YELLOW, 0x99B | PALETTE_TO_STRUCT_YELLOW, 0x9AF | PALETTE_TO_STRUCT_YELLOW, 0x0,
0x111C | PALETTE_TO_STRUCT_YELLOW, 0x9A3 | PALETTE_TO_STRUCT_YELLOW, 0x9B3 | PALETTE_TO_STRUCT_YELLOW, 0x0, 0x1118 | PALETTE_TO_STRUCT_YELLOW, 0x99B | PALETTE_TO_STRUCT_YELLOW, 0x9AF | PALETTE_TO_STRUCT_YELLOW, 0x0,
- SPR_OPENTTD_BASE + 35,
+ SPR_PILLARS_BASE + 2
};
static const PalSpriteID _bridge_sprite_table_5_4[] = {
@@ -168,7 +168,7 @@ static const PalSpriteID _bridge_sprite_table_5_4[] = {
0x9B8 | PALETTE_TO_STRUCT_YELLOW, 0x9BA | PALETTE_TO_STRUCT_YELLOW, 0x9BC | PALETTE_TO_STRUCT_YELLOW, 0x0, 0x9B7 | PALETTE_TO_STRUCT_YELLOW, 0x9B9 | PALETTE_TO_STRUCT_YELLOW, 0x9BB | PALETTE_TO_STRUCT_YELLOW, 0x0,
0x10F7 | PALETTE_TO_STRUCT_YELLOW, 0x9BA | PALETTE_TO_STRUCT_YELLOW, 0x9BC | PALETTE_TO_STRUCT_YELLOW, 0x0, 0x10F6 | PALETTE_TO_STRUCT_YELLOW, 0x9B9 | PALETTE_TO_STRUCT_YELLOW, 0x9BB | PALETTE_TO_STRUCT_YELLOW, 0x0,
0x111F | PALETTE_TO_STRUCT_YELLOW, 0x9BA | PALETTE_TO_STRUCT_YELLOW, 0x9BC | PALETTE_TO_STRUCT_YELLOW, 0x0, 0x111E | PALETTE_TO_STRUCT_YELLOW, 0x9B9 | PALETTE_TO_STRUCT_YELLOW, 0x9BB | PALETTE_TO_STRUCT_YELLOW, 0x0,
- SPR_OPENTTD_BASE+38, 0x0, 0x0, 0x0, SPR_OPENTTD_BASE + 37,
+ SPR_PILLARS_BASE + 5, 0x0, 0x0, 0x0, SPR_PILLARS_BASE + 4
};
static const PalSpriteID _bridge_sprite_table_5_5[] = {
@@ -176,7 +176,7 @@ static const PalSpriteID _bridge_sprite_table_5_5[] = {
0x9BF | PALETTE_TO_STRUCT_YELLOW, 0x9C1 | PALETTE_TO_STRUCT_YELLOW, 0x0, 0x0, 0x9C0 | PALETTE_TO_STRUCT_YELLOW, 0x9C2 | PALETTE_TO_STRUCT_YELLOW, 0x0, 0x0,
0x10F8 | PALETTE_TO_STRUCT_YELLOW, 0x9C1 | PALETTE_TO_STRUCT_YELLOW, 0x0, 0x0, 0x10F9 | PALETTE_TO_STRUCT_YELLOW, 0x9C2 | PALETTE_TO_STRUCT_YELLOW, 0x0, 0x0,
0x1120 | PALETTE_TO_STRUCT_YELLOW, 0x9C1 | PALETTE_TO_STRUCT_YELLOW, 0x0, 0x0, 0x1121 | PALETTE_TO_STRUCT_YELLOW, 0x9C2 | PALETTE_TO_STRUCT_YELLOW, 0x0, 0x0,
- 0x0, SPR_OPENTTD_BASE + 35,
+ 0x0, SPR_PILLARS_BASE + 2
};
static const PalSpriteID _bridge_sprite_table_5_6[] = {
@@ -184,22 +184,22 @@ static const PalSpriteID _bridge_sprite_table_5_6[] = {
0x98E | PALETTE_TO_STRUCT_YELLOW, 0x990 | PALETTE_TO_STRUCT_YELLOW, 0x98D | PALETTE_TO_STRUCT_YELLOW, 0x98F | PALETTE_TO_STRUCT_YELLOW, 0x992 | PALETTE_TO_STRUCT_YELLOW, 0x994 | PALETTE_TO_STRUCT_YELLOW, 0x991 | PALETTE_TO_STRUCT_YELLOW, 0x993 | PALETTE_TO_STRUCT_YELLOW,
0x10E7 | PALETTE_TO_STRUCT_YELLOW, 0x10E9 | PALETTE_TO_STRUCT_YELLOW, 0x10E6 | PALETTE_TO_STRUCT_YELLOW, 0x10E8 | PALETTE_TO_STRUCT_YELLOW, 0x10EB | PALETTE_TO_STRUCT_YELLOW, 0x10ED | PALETTE_TO_STRUCT_YELLOW, 0x10EA | PALETTE_TO_STRUCT_YELLOW, 0x10EC | PALETTE_TO_STRUCT_YELLOW,
0x110F | PALETTE_TO_STRUCT_YELLOW, 0x1111 | PALETTE_TO_STRUCT_YELLOW, 0x110E | PALETTE_TO_STRUCT_YELLOW, 0x1110 | PALETTE_TO_STRUCT_YELLOW, 0x1113 | PALETTE_TO_STRUCT_YELLOW, 0x1115 | PALETTE_TO_STRUCT_YELLOW, 0x1112 | PALETTE_TO_STRUCT_YELLOW, 0x1114 | PALETTE_TO_STRUCT_YELLOW,
- 0x0, SPR_OPENTTD_BASE + 35,
+ 0x0, SPR_PILLARS_BASE + 2,
};
static const PalSpriteID _bridge_sprite_table_5_poles[] = {
- SPR_OPENTTD_BASE + 36 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
- SPR_OPENTTD_BASE + 37 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
- SPR_OPENTTD_BASE + 37 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
- SPR_OPENTTD_BASE + 36 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
- SPR_OPENTTD_BASE + 38 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
+ SPR_PILLARS_BASE + 6 * 0 + 3 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
+ SPR_PILLARS_BASE + 6 * 0 + 4 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
+ SPR_PILLARS_BASE + 6 * 0 + 4 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
+ SPR_PILLARS_BASE + 6 * 0 + 3 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
+ SPR_PILLARS_BASE + 6 * 0 + 5 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
0x0,
- SPR_OPENTTD_BASE + 33 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
- SPR_OPENTTD_BASE + 34 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
- SPR_OPENTTD_BASE + 34 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
- SPR_OPENTTD_BASE + 33 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
- SPR_OPENTTD_BASE + 35 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
+ SPR_PILLARS_BASE + 6 * 0 + 0 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
+ SPR_PILLARS_BASE + 6 * 0 + 1 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
+ SPR_PILLARS_BASE + 6 * 0 + 1 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
+ SPR_PILLARS_BASE + 6 * 0 + 0 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
+ SPR_PILLARS_BASE + 6 * 0 + 2 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
0x0,
0x0,
@@ -253,22 +253,22 @@ static const PalSpriteID _bridge_sprite_table_3_6[] = {
0x98E | PALETTE_TO_STRUCT_CONCRETE, 0x990 | PALETTE_TO_STRUCT_CONCRETE, 0x98D | PALETTE_TO_STRUCT_CONCRETE, 0x98F | PALETTE_TO_STRUCT_CONCRETE, 0x992 | PALETTE_TO_STRUCT_CONCRETE, 0x994 | PALETTE_TO_STRUCT_CONCRETE, 0x991 | PALETTE_TO_STRUCT_CONCRETE, 0x993 | PALETTE_TO_STRUCT_CONCRETE,
0x10E7 | PALETTE_TO_STRUCT_CONCRETE, 0x10E9 | PALETTE_TO_STRUCT_CONCRETE, 0x10E6 | PALETTE_TO_STRUCT_CONCRETE, 0x10E8 | PALETTE_TO_STRUCT_CONCRETE, 0x10EB | PALETTE_TO_STRUCT_CONCRETE, 0x10ED | PALETTE_TO_STRUCT_CONCRETE, 0x10EA | PALETTE_TO_STRUCT_CONCRETE, 0x10EC | PALETTE_TO_STRUCT_CONCRETE,
0x110F | PALETTE_TO_STRUCT_CONCRETE, 0x1111 | PALETTE_TO_STRUCT_CONCRETE, 0x110E | PALETTE_TO_STRUCT_CONCRETE, 0x1110 | PALETTE_TO_STRUCT_CONCRETE, 0x1113 | PALETTE_TO_STRUCT_CONCRETE, 0x1115 | PALETTE_TO_STRUCT_CONCRETE, 0x1112 | PALETTE_TO_STRUCT_CONCRETE, 0x1114 | PALETTE_TO_STRUCT_CONCRETE,
- 0x0, SPR_OPENTTD_BASE + 35,
+ 0x0, SPR_PILLARS_BASE + 2,
};
static const PalSpriteID _bridge_sprite_table_3_poles[] = {
- SPR_OPENTTD_BASE + 36 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_CONCRETE),
- SPR_OPENTTD_BASE + 37 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_CONCRETE),
- SPR_OPENTTD_BASE + 37 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_CONCRETE),
- SPR_OPENTTD_BASE + 36 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_CONCRETE),
- SPR_OPENTTD_BASE + 38 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_CONCRETE),
+ SPR_PILLARS_BASE + 6 * 0 + 3 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_CONCRETE),
+ SPR_PILLARS_BASE + 6 * 0 + 4 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_CONCRETE),
+ SPR_PILLARS_BASE + 6 * 0 + 4 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_CONCRETE),
+ SPR_PILLARS_BASE + 6 * 0 + 3 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_CONCRETE),
+ SPR_PILLARS_BASE + 6 * 0 + 5 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_CONCRETE),
0x0,
- SPR_OPENTTD_BASE + 33 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_CONCRETE),
- SPR_OPENTTD_BASE + 34 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_CONCRETE),
- SPR_OPENTTD_BASE + 34 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_CONCRETE),
- SPR_OPENTTD_BASE + 33 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_CONCRETE),
- SPR_OPENTTD_BASE + 35 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_CONCRETE),
+ SPR_PILLARS_BASE + 6 * 0 + 0 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_CONCRETE),
+ SPR_PILLARS_BASE + 6 * 0 + 1 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_CONCRETE),
+ SPR_PILLARS_BASE + 6 * 0 + 1 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_CONCRETE),
+ SPR_PILLARS_BASE + 6 * 0 + 0 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_CONCRETE),
+ SPR_PILLARS_BASE + 6 * 0 + 2 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_CONCRETE),
0x0,
0x0,
@@ -283,18 +283,18 @@ static const PalSpriteID _bridge_sprite_table_1_1[] = {
};
static const PalSpriteID _bridge_sprite_table_1_poles[] = {
- SPR_OPENTTD_BASE + 36 + 6*3,
- SPR_OPENTTD_BASE + 37 + 6*3,
- SPR_OPENTTD_BASE + 37 + 6*3,
- SPR_OPENTTD_BASE + 36 + 6*3,
- SPR_OPENTTD_BASE + 38 + 6*3,
+ SPR_PILLARS_BASE + 6 * 3 + 3,
+ SPR_PILLARS_BASE + 6 * 3 + 4,
+ SPR_PILLARS_BASE + 6 * 3 + 4,
+ SPR_PILLARS_BASE + 6 * 3 + 3,
+ SPR_PILLARS_BASE + 6 * 3 + 5,
0x0,
- SPR_OPENTTD_BASE + 33 + 6*3,
- SPR_OPENTTD_BASE + 34 + 6*3,
- SPR_OPENTTD_BASE + 34 + 6*3,
- SPR_OPENTTD_BASE + 33 + 6*3,
- SPR_OPENTTD_BASE + 35 + 6*3,
+ SPR_PILLARS_BASE + 6 * 3 + 0,
+ SPR_PILLARS_BASE + 6 * 3 + 1,
+ SPR_PILLARS_BASE + 6 * 3 + 1,
+ SPR_PILLARS_BASE + 6 * 3 + 0,
+ SPR_PILLARS_BASE + 6 * 3 + 2,
0x0,
0x0,
@@ -459,18 +459,18 @@ static const PalSpriteID _bridge_sprite_table_0_1[] = {
};
static const PalSpriteID _bridge_sprite_table_0_poles[] = {
- SPR_OPENTTD_BASE + 42,
- SPR_OPENTTD_BASE + 42,
- SPR_OPENTTD_BASE + 42,
- SPR_OPENTTD_BASE + 42,
- SPR_OPENTTD_BASE + 44,
+ SPR_PILLARS_BASE + 6 * 1 + 3,
+ SPR_PILLARS_BASE + 6 * 1 + 3,
+ SPR_PILLARS_BASE + 6 * 1 + 3,
+ SPR_PILLARS_BASE + 6 * 1 + 3,
+ SPR_PILLARS_BASE + 6 * 1 + 5,
0x0,
- SPR_OPENTTD_BASE + 39,
- SPR_OPENTTD_BASE + 39,
- SPR_OPENTTD_BASE + 39,
- SPR_OPENTTD_BASE + 39,
- SPR_OPENTTD_BASE + 41,
+ SPR_PILLARS_BASE + 6 * 1 + 0,
+ SPR_PILLARS_BASE + 6 * 1 + 0,
+ SPR_PILLARS_BASE + 6 * 1 + 0,
+ SPR_PILLARS_BASE + 6 * 1 + 0,
+ SPR_PILLARS_BASE + 6 * 1 + 2,
0x0,
0x0,
@@ -514,18 +514,18 @@ static const PalSpriteID _bridge_sprite_table_10_2[] = {
};
static const PalSpriteID _bridge_sprite_table_10_poles[] = {
- SPR_OPENTTD_BASE + 36 + 2*6,
- SPR_OPENTTD_BASE + 36 + 2*6,
- SPR_OPENTTD_BASE + 36 + 2*6,
- SPR_OPENTTD_BASE + 36 + 2*6,
- SPR_OPENTTD_BASE + 38 + 2*6,
+ SPR_PILLARS_BASE + 6 * 2 + 3,
+ SPR_PILLARS_BASE + 6 * 2 + 3,
+ SPR_PILLARS_BASE + 6 * 2 + 3,
+ SPR_PILLARS_BASE + 6 * 2 + 3,
+ SPR_PILLARS_BASE + 6 * 2 + 5,
0x0,
- SPR_OPENTTD_BASE + 33 + 2*6,
- SPR_OPENTTD_BASE + 33 + 2*6,
- SPR_OPENTTD_BASE + 33 + 2*6,
- SPR_OPENTTD_BASE + 33 + 2*6,
- SPR_OPENTTD_BASE + 35 + 2*6,
+ SPR_PILLARS_BASE + 6 * 2 + 0,
+ SPR_PILLARS_BASE + 6 * 2 + 0,
+ SPR_PILLARS_BASE + 6 * 2 + 0,
+ SPR_PILLARS_BASE + 6 * 2 + 0,
+ SPR_PILLARS_BASE + 6 * 2 + 2,
0x0,
0x0,
@@ -554,18 +554,18 @@ static const PalSpriteID _bridge_sprite_table_11_2[] = {
};
static const PalSpriteID _bridge_sprite_table_11_poles[] = {
- SPR_OPENTTD_BASE + 36 + 2*6 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
- SPR_OPENTTD_BASE + 36 + 2*6 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
- SPR_OPENTTD_BASE + 36 + 2*6 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
- SPR_OPENTTD_BASE + 36 + 2*6 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
- SPR_OPENTTD_BASE + 38 + 2*6 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
+ SPR_PILLARS_BASE + 6 * 2 + 3 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
+ SPR_PILLARS_BASE + 6 * 2 + 3 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
+ SPR_PILLARS_BASE + 6 * 2 + 3 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
+ SPR_PILLARS_BASE + 6 * 2 + 3 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
+ SPR_PILLARS_BASE + 6 * 2 + 5 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
0x0,
- SPR_OPENTTD_BASE + 33 + 2*6 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
- SPR_OPENTTD_BASE + 33 + 2*6 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
- SPR_OPENTTD_BASE + 33 + 2*6 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
- SPR_OPENTTD_BASE + 33 + 2*6 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
- SPR_OPENTTD_BASE + 35 + 2*6 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
+ SPR_PILLARS_BASE + 6 * 2 + 0 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
+ SPR_PILLARS_BASE + 6 * 2 + 0 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
+ SPR_PILLARS_BASE + 6 * 2 + 0 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
+ SPR_PILLARS_BASE + 6 * 2 + 0 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
+ SPR_PILLARS_BASE + 6 * 2 + 2 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_YELLOW),
0x0,
0x0,
@@ -594,18 +594,18 @@ static const PalSpriteID _bridge_sprite_table_12_2[] = {
};
static const PalSpriteID _bridge_sprite_table_12_poles[] = {
- SPR_OPENTTD_BASE + 36 + 2*6 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_GREY),
- SPR_OPENTTD_BASE + 36 + 2*6 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_GREY),
- SPR_OPENTTD_BASE + 36 + 2*6 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_GREY),
- SPR_OPENTTD_BASE + 36 + 2*6 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_GREY),
- SPR_OPENTTD_BASE + 38 + 2*6 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_GREY),
- 0x0,
-
- SPR_OPENTTD_BASE + 33 + 2*6 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_GREY),
- SPR_OPENTTD_BASE + 33 + 2*6 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_GREY),
- SPR_OPENTTD_BASE + 33 + 2*6 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_GREY),
- SPR_OPENTTD_BASE + 33 + 2*6 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_GREY),
- SPR_OPENTTD_BASE + 35 + 2*6 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_GREY),
+ SPR_PILLARS_BASE + 6 * 2 + 3 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_GREY),
+ SPR_PILLARS_BASE + 6 * 2 + 3 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_GREY),
+ SPR_PILLARS_BASE + 6 * 2 + 3 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_GREY),
+ SPR_PILLARS_BASE + 6 * 2 + 3 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_GREY),
+ SPR_PILLARS_BASE + 6 * 2 + 5 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_GREY),
+ 0x0,
+
+ SPR_PILLARS_BASE + 6 * 2 + 0 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_GREY),
+ SPR_PILLARS_BASE + 6 * 2 + 0 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_GREY),
+ SPR_PILLARS_BASE + 6 * 2 + 0 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_GREY),
+ SPR_PILLARS_BASE + 6 * 2 + 0 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_GREY),
+ SPR_PILLARS_BASE + 6 * 2 + 2 + (PALETTE_MODIFIER_COLOR | PALETTE_TO_STRUCT_GREY),
0x0,
0x0,
diff --git a/table/sprites.h b/table/sprites.h
index 585805342..5045be201 100644
--- a/table/sprites.h
+++ b/table/sprites.h
@@ -427,6 +427,7 @@ enum Sprites {
SPR_CROSSING_OFF_X_MAGLEV = 1394,
/* bridge type sprites */
+ SPR_PILLARS_BASE = SPR_OPENTTD_BASE + 33,
/* Wooden bridge (type 0) */
SPR_BTWDN_RAIL_Y_REAR = 2545,
@@ -891,7 +892,26 @@ enum Sprites {
SPR_IMG_TRUCK_BAY = 750,
SPR_IMG_BRIDGE = 2594,
SPR_IMG_ROAD_TUNNEL = 2429,
- SPR_IMG_REMOVE = 714
+ SPR_IMG_REMOVE = 714,
+
+ /* rail_gui.c */
+ SPR_IMG_AUTORAIL = SPR_OPENTTD_BASE + 0,
+ SPR_IMG_AUTOMONO = SPR_OPENTTD_BASE + 1,
+ SPR_IMG_AUTOMAGLEV = SPR_OPENTTD_BASE + 2,
+
+ SPR_IMG_WAYPOINT = SPR_OPENTTD_BASE + 3,
+
+ SPR_IMG_DEPOT_RAIL = 1294,
+ SPR_IMG_DEPOT_MONO = SPR_OPENTTD_BASE + 12,
+ SPR_IMG_DEPOT_MAGLEV = SPR_OPENTTD_BASE + 13,
+
+ SPR_IMG_TUNNEL_RAIL = 2430,
+ SPR_IMG_TUNNEL_MONO = 2431,
+ SPR_IMG_TUNNEL_MAGLEV = 2432,
+
+ SPR_IMG_CONVERT_RAIL = SPR_OPENTTD_BASE + 25,
+ SPR_IMG_CONVERT_MONO = SPR_OPENTTD_BASE + 27,
+ SPR_IMG_CONVERT_MAGLEV = SPR_OPENTTD_BASE + 29
};
/** Cursor sprite numbers */
diff --git a/table/station_land.h b/table/station_land.h
index e8ca47e27..6b27b6bc7 100644
--- a/table/station_land.h
+++ b/table/station_land.h
@@ -673,7 +673,7 @@ const DrawTileSeqStruct _station_display_datas_0113[] = {
// helipad for international airport
// concrete underground
const DrawTileSeqStruct _station_display_datas_0114[] = {
- { 10, 6, 0, 0, 0, 0, SPR_OPENTTD_BASE + 31 }, // helipad
+ { 10, 6, 0, 0, 0, 0, SPR_AIRPORT_HELIPAD },
{ 15, 0, 0, 1, 16, 6, 0xA67 | PALETTE_MODIFIER_COLOR }, // fences bottom
TILE_SEQ_END()
};
diff --git a/table/track_land.h b/table/track_land.h
index 6c535bf69..3ca8ca14b 100644
--- a/table/track_land.h
+++ b/table/track_land.h
@@ -40,15 +40,15 @@ static const DrawTrackSeqStruct _track_depot_layout_table_3[] = {
static const DrawTrackSeqStruct _track_waypoint_table_0[] = {
TILE_SEQ_BEGIN(0x3F4 | PALETTE_MODIFIER_COLOR)
- TILE_SEQ_LINE(PALETTE_MODIFIER_COLOR | (SPR_OPENTTD_BASE + 18), 0, 0, 16, 5)
- TILE_SEQ_LINE(PALETTE_MODIFIER_COLOR | (SPR_OPENTTD_BASE + 19), 0, 11, 16, 5)
+ TILE_SEQ_LINE(PALETTE_MODIFIER_COLOR | SPR_WAYPOINT_X_1, 0, 0, 16, 5)
+ TILE_SEQ_LINE(PALETTE_MODIFIER_COLOR | SPR_WAYPOINT_X_2, 0, 11, 16, 5)
TILE_SEQ_END()
};
static const DrawTrackSeqStruct _track_waypoint_table_1[] = {
TILE_SEQ_BEGIN(0x3F3 | PALETTE_MODIFIER_COLOR)
- TILE_SEQ_LINE(PALETTE_MODIFIER_COLOR | (SPR_OPENTTD_BASE + 20), 0, 0, 5, 16)
- TILE_SEQ_LINE(PALETTE_MODIFIER_COLOR | (SPR_OPENTTD_BASE + 21), 11, 0, 5, 16)
+ TILE_SEQ_LINE(PALETTE_MODIFIER_COLOR | SPR_WAYPOINT_Y_1, 0, 0, 5, 16)
+ TILE_SEQ_LINE(PALETTE_MODIFIER_COLOR | SPR_WAYPOINT_Y_2, 11, 0, 5, 16)
TILE_SEQ_END()
};