summaryrefslogtreecommitdiff
path: root/table/track_land.h
diff options
context:
space:
mode:
Diffstat (limited to 'table/track_land.h')
-rw-r--r--table/track_land.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/table/track_land.h b/table/track_land.h
index 41df8b21d..21f24eae0 100644
--- a/table/track_land.h
+++ b/table/track_land.h
@@ -1,3 +1,11 @@
+typedef struct DrawTrackSeqStruct {
+ uint16 image;
+ byte subcoord_x;
+ byte subcoord_y;
+ byte width;
+ byte height;
+} DrawTrackSeqStruct;
+
#define TILE_SEQ_BEGIN(x) { x, 0, 0, 0, 0 },
#define TILE_SEQ_LINE(a, b, c, d, e) { a, b, c, d, e },
#define TILE_SEQ_END() { 0, 0, 0, 0, 0 }
@@ -31,7 +39,7 @@ static const DrawTrackSeqStruct _track_depot_layout_table_3[] = {
static const DrawTrackSeqStruct _track_waypoint_table_0[] = {
TILE_SEQ_BEGIN(0x83F4)
TILE_SEQ_LINE(0x8000 + SPR_OPENTTD_BASE+18, 0, 0, 16, 5)
- TILE_SEQ_LINE(0x8000 + SPR_OPENTTD_BASE+19, 0, 11, 16, 5)
+ TILE_SEQ_LINE(0x8000 + +19, 0, 11, 16, 5)
TILE_SEQ_END()
};
@@ -53,7 +61,7 @@ static const DrawTrackSeqStruct* const _track_depot_layout_table[] = {
_track_waypoint_table_1,
};
-const byte _track_sloped_sprites[14] = {
+static const byte _track_sloped_sprites[14] = {
14, 15, 22, 13,
0, 21, 17, 12,
23, 0, 18, 20,