(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)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user