diff options
author | tron <tron@openttd.org> | 2005-06-24 12:38:35 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-06-24 12:38:35 +0000 |
commit | 3154e7148d00f0203760aefbc6f8a5bd210cc30c (patch) | |
tree | 17004bd894946da466a10e50a86ff66225cf8896 /pathfind.h | |
parent | 3448729ff36ca9e91d91c256d9a5381ba901230b (diff) | |
download | openttd-3154e7148d00f0203760aefbc6f8a5bd210cc30c.tar.xz |
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
Diffstat (limited to 'pathfind.h')
-rw-r--r-- | pathfind.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pathfind.h b/pathfind.h index 3ed755b9a..0543df461 100644 --- a/pathfind.h +++ b/pathfind.h @@ -5,7 +5,7 @@ //supported on all archs) typedef struct TrackPathFinder TrackPathFinder; -typedef bool TPFEnumProc(uint tile, void *data, int track, uint length, byte *state); +typedef bool TPFEnumProc(TileIndex tile, void *data, int track, uint length, byte *state); typedef void TPFAfterProc(TrackPathFinder *tpf); @@ -55,14 +55,14 @@ struct TrackPathFinder { TrackPathFinderLink links[0x400]; /* hopefully, this is enough. */ }; -void FollowTrack(uint tile, uint16 flags, byte direction, TPFEnumProc *enum_proc, TPFAfterProc *after_proc, void *data); +void FollowTrack(TileIndex tile, uint16 flags, byte direction, TPFEnumProc *enum_proc, TPFAfterProc *after_proc, void *data); typedef struct { - uint tile; + TileIndex tile; int length; } FindLengthOfTunnelResult; -FindLengthOfTunnelResult FindLengthOfTunnel(uint tile, int direction); +FindLengthOfTunnelResult FindLengthOfTunnel(TileIndex tile, int direction); -void NewTrainPathfind(uint tile, byte direction, TPFEnumProc *enum_proc, void *data, byte *cache); +void NewTrainPathfind(TileIndex tile, byte direction, TPFEnumProc *enum_proc, void *data, byte *cache); #endif /* PATHFIND_H */ |