diff options
author | truelight <truelight@openttd.org> | 2005-03-24 17:03:37 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-03-24 17:03:37 +0000 |
commit | 83637d164e8be15166aeb39134170ecbe02173d3 (patch) | |
tree | 45d160ba77950eea4f380bd7ff3bbcf6644f651a /table | |
parent | f86318407ca89cecce23128f34c61f9fa4f078b7 (diff) | |
download | openttd-83637d164e8be15166aeb39134170ecbe02173d3.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.h | 12 |
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, |