diff options
author | rubidium <rubidium@openttd.org> | 2007-03-07 12:11:48 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-03-07 12:11:48 +0000 |
commit | 24c4d5b06d231785db01500360c26815d8fe4d15 (patch) | |
tree | 757477dbdc02025cc29690a4e66e40f872cab02b /src/pathfind.cpp | |
parent | 36bb92ae241403d61dc7a3e5a1696b615be61395 (diff) | |
download | openttd-24c4d5b06d231785db01500360c26815d8fe4d15.tar.xz |
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
Diffstat (limited to 'src/pathfind.cpp')
-rw-r--r-- | src/pathfind.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pathfind.cpp b/src/pathfind.cpp index 431acd317..169682c92 100644 --- a/src/pathfind.cpp +++ b/src/pathfind.cpp @@ -423,7 +423,7 @@ void FollowTrack(TileIndex tile, uint16 flags, DiagDirection direction, TPFEnumP after_proc(&tpf); } -typedef struct { +struct StackedItem { TileIndex tile; uint16 cur_length; // This is the current length to this tile. uint16 priority; // This is the current length + estimated length to the goal. @@ -431,7 +431,7 @@ typedef struct { byte depth; byte state; byte first_track; -} StackedItem; +}; static const Trackdir _new_trackdir[6][4] = { {TRACKDIR_X_NE, INVALID_TRACKDIR, TRACKDIR_X_SW, INVALID_TRACKDIR,}, @@ -442,13 +442,13 @@ static const Trackdir _new_trackdir[6][4] = { {INVALID_TRACKDIR, INVALID_TRACKDIR, TRACKDIR_RIGHT_S, TRACKDIR_RIGHT_N,}, }; -typedef struct HashLink { +struct HashLink { TileIndex tile; uint16 typelength; uint16 next; -} HashLink; +}; -typedef struct { +struct NewTrackPathFinder { NTPEnumProc *enum_proc; void *userdata; TileIndex dest; @@ -468,7 +468,7 @@ typedef struct { HashLink links[0x400]; // hash links -} NewTrackPathFinder; +}; #define NTP_GET_LINK_OFFS(tpf, link) ((byte*)(link) - (byte*)tpf->links) #define NTP_GET_LINK_PTR(tpf, link_offs) (HashLink*)((byte*)tpf->links + (link_offs)) |