summaryrefslogtreecommitdiff
path: root/table
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-03-24 17:03:37 +0000
committertruelight <truelight@openttd.org>2005-03-24 17:03:37 +0000
commitd1e158d6f723b6fcb2f1edf1ffac29b81ed307e7 (patch)
tree45d160ba77950eea4f380bd7ff3bbcf6644f651a /table
parent625d041e99b5ddd75a8f4cd3a1e11d9923d219f9 (diff)
downloadopenttd-d1e158d6f723b6fcb2f1edf1ffac29b81ed307e7.tar.xz
(svn r2046) -Codechange: moved all waypoint code to waypoint.c/waypoint.h
-Codechange: rewrote some functions while moving waypoint-stuff -Add: added support for 64k waypoints -Fix: made the waypoint struct a bit more logic (no bit-fucking)
Diffstat (limited to 'table')
-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,