summaryrefslogtreecommitdiff
path: root/src/pathfind.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-03-07 12:11:48 +0000
committerrubidium <rubidium@openttd.org>2007-03-07 12:11:48 +0000
commit24c4d5b06d231785db01500360c26815d8fe4d15 (patch)
tree757477dbdc02025cc29690a4e66e40f872cab02b /src/pathfind.h
parent36bb92ae241403d61dc7a3e5a1696b615be61395 (diff)
downloadopenttd-24c4d5b06d231785db01500360c26815d8fe4d15.tar.xz
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
Diffstat (limited to 'src/pathfind.h')
-rw-r--r--src/pathfind.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/pathfind.h b/src/pathfind.h
index 6c0dccad1..bbd9f83f5 100644
--- a/src/pathfind.h
+++ b/src/pathfind.h
@@ -14,7 +14,7 @@ enum {
//#define PF_BENCH // perform simple benchmarks on the train pathfinder (not
//supported on all archs)
-typedef struct TrackPathFinder TrackPathFinder;
+struct TrackPathFinder;
typedef bool TPFEnumProc(TileIndex tile, void *data, Trackdir trackdir, uint length, byte *state);
typedef void TPFAfterProc(TrackPathFinder *tpf);
@@ -30,17 +30,17 @@ typedef bool NTPEnumProc(TileIndex tile, void *data, int track, uint length);
*/
#define PATHFIND_HASH_TILE(tile) (TileX(tile) & 0x1F) + ((TileY(tile) & 0x1F) << 5)
-typedef struct TrackPathFinderLink {
+struct TrackPathFinderLink {
TileIndex tile;
uint16 flags;
uint16 next;
-} TrackPathFinderLink;
+};
-typedef struct RememberData {
+struct RememberData {
uint16 cur_length;
byte depth;
byte pft_var6;
-} RememberData;
+};
struct TrackPathFinder {
int num_links_left;
@@ -67,10 +67,10 @@ struct TrackPathFinder {
void FollowTrack(TileIndex tile, uint16 flags, DiagDirection direction, TPFEnumProc* enum_proc, TPFAfterProc* after_proc, void* data);
-typedef struct {
+struct FindLengthOfTunnelResult {
TileIndex tile;
int length;
-} FindLengthOfTunnelResult;
+};
FindLengthOfTunnelResult FindLengthOfTunnel(TileIndex tile, DiagDirection direction);
void NewTrainPathfind(TileIndex tile, TileIndex dest, RailTypeMask railtypes, DiagDirection direction, NTPEnumProc* enum_proc, void* data);