author | darkvater |
Tue, 15 Mar 2005 12:21:59 +0000 | |
changeset 1507 | 2d09b13f049f |
parent 1399 | 4503bd2bfb82 |
child 1542 | 2ca6d1624e6d |
permissions | -rw-r--r-- |
1399
4503bd2bfb82
(svn r1903) Replace some casts and macro magic with proper typing, similar to r1902
tron
parents:
395
diff
changeset
|
1 |
#define TILE_SEQ_BEGIN(x) { x, 0, 0, 0, 0 }, |
4503bd2bfb82
(svn r1903) Replace some casts and macro magic with proper typing, similar to r1902
tron
parents:
395
diff
changeset
|
2 |
#define TILE_SEQ_LINE(a, b, c, d, e) { a, b, c, d, e }, |
4503bd2bfb82
(svn r1903) Replace some casts and macro magic with proper typing, similar to r1902
tron
parents:
395
diff
changeset
|
3 |
#define TILE_SEQ_END() { 0, 0, 0, 0, 0 } |
0 | 4 |
|
1399
4503bd2bfb82
(svn r1903) Replace some casts and macro magic with proper typing, similar to r1902
tron
parents:
395
diff
changeset
|
5 |
static const DrawTrackSeqStruct _track_depot_layout_table_0[] = { |
0 | 6 |
TILE_SEQ_BEGIN(0xF8D) |
7 |
TILE_SEQ_LINE(0x842B, 2, 13, 13, 1) |
|
8 |
TILE_SEQ_END() |
|
9 |
}; |
|
10 |
||
1399
4503bd2bfb82
(svn r1903) Replace some casts and macro magic with proper typing, similar to r1902
tron
parents:
395
diff
changeset
|
11 |
static const DrawTrackSeqStruct _track_depot_layout_table_1[] = { |
0 | 12 |
TILE_SEQ_BEGIN(0x83F3) |
13 |
TILE_SEQ_LINE(0x8427, 2, 2, 1, 13) |
|
14 |
TILE_SEQ_LINE(0x8428, 13, 2, 1, 13) |
|
15 |
TILE_SEQ_END() |
|
16 |
}; |
|
17 |
||
1399
4503bd2bfb82
(svn r1903) Replace some casts and macro magic with proper typing, similar to r1902
tron
parents:
395
diff
changeset
|
18 |
static const DrawTrackSeqStruct _track_depot_layout_table_2[] = { |
0 | 19 |
TILE_SEQ_BEGIN(0x83F4) |
20 |
TILE_SEQ_LINE(0x8429, 2, 2, 13, 1) |
|
21 |
TILE_SEQ_LINE(0x842A, 2, 13, 13, 1) |
|
22 |
TILE_SEQ_END() |
|
23 |
}; |
|
24 |
||
1399
4503bd2bfb82
(svn r1903) Replace some casts and macro magic with proper typing, similar to r1902
tron
parents:
395
diff
changeset
|
25 |
static const DrawTrackSeqStruct _track_depot_layout_table_3[] = { |
0 | 26 |
TILE_SEQ_BEGIN(0xF8D) |
27 |
TILE_SEQ_LINE(0x842C, 13, 2, 1, 13) |
|
28 |
TILE_SEQ_END() |
|
29 |
}; |
|
30 |
||
1399
4503bd2bfb82
(svn r1903) Replace some casts and macro magic with proper typing, similar to r1902
tron
parents:
395
diff
changeset
|
31 |
static const DrawTrackSeqStruct _track_waypoint_table_0[] = { |
0 | 32 |
TILE_SEQ_BEGIN(0x83F4) |
277
531aaf04cd3f
(svn r283) New checkpoint graphics (drawn by Eobet and George)
dominik
parents:
0
diff
changeset
|
33 |
TILE_SEQ_LINE(0x8000 + SPR_OPENTTD_BASE+18, 0, 0, 16, 5) |
531aaf04cd3f
(svn r283) New checkpoint graphics (drawn by Eobet and George)
dominik
parents:
0
diff
changeset
|
34 |
TILE_SEQ_LINE(0x8000 + SPR_OPENTTD_BASE+19, 0, 11, 16, 5) |
0 | 35 |
TILE_SEQ_END() |
36 |
}; |
|
37 |
||
1399
4503bd2bfb82
(svn r1903) Replace some casts and macro magic with proper typing, similar to r1902
tron
parents:
395
diff
changeset
|
38 |
static const DrawTrackSeqStruct _track_waypoint_table_1[] = { |
0 | 39 |
TILE_SEQ_BEGIN(0x83F3) |
277
531aaf04cd3f
(svn r283) New checkpoint graphics (drawn by Eobet and George)
dominik
parents:
0
diff
changeset
|
40 |
TILE_SEQ_LINE(0x8000 + SPR_OPENTTD_BASE+20, 0, 0, 5, 16) |
531aaf04cd3f
(svn r283) New checkpoint graphics (drawn by Eobet and George)
dominik
parents:
0
diff
changeset
|
41 |
TILE_SEQ_LINE(0x8000 + SPR_OPENTTD_BASE+21, 11, 0, 5, 16) |
0 | 42 |
TILE_SEQ_END() |
43 |
}; |
|
44 |
||
45 |
||
1399
4503bd2bfb82
(svn r1903) Replace some casts and macro magic with proper typing, similar to r1902
tron
parents:
395
diff
changeset
|
46 |
static const DrawTrackSeqStruct* const _track_depot_layout_table[] = { |
0 | 47 |
_track_depot_layout_table_0, |
48 |
_track_depot_layout_table_1, |
|
49 |
_track_depot_layout_table_2, |
|
50 |
_track_depot_layout_table_3, |
|
51 |
||
395
4c990f33dab7
(svn r587) -newgrf: Rename all /Checkpoint/i tokens to 'Waypoint's. The name actually makes some sense and is also compatible with TTDPatch (pasky).
darkvater
parents:
277
diff
changeset
|
52 |
_track_waypoint_table_0, |
4c990f33dab7
(svn r587) -newgrf: Rename all /Checkpoint/i tokens to 'Waypoint's. The name actually makes some sense and is also compatible with TTDPatch (pasky).
darkvater
parents:
277
diff
changeset
|
53 |
_track_waypoint_table_1, |
0 | 54 |
}; |
55 |
||
56 |
const byte _track_sloped_sprites[14] = { |
|
57 |
14, 15, 22, 13, |
|
58 |
0, 21, 17, 12, |
|
59 |
23, 0, 18, 20, |
|
60 |
19, 16 |
|
61 |
}; |