diff options
author | frosch <frosch@openttd.org> | 2008-02-20 15:13:42 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-02-20 15:13:42 +0000 |
commit | 1d120c51b8289eaa802b12d965bfa95e57880c0b (patch) | |
tree | 4c5862dde2fdfc0058bc9a2999d4402a2334b88c /src/ai/default/default.cpp | |
parent | 44a829336415e0bdb19a668d02aa022355047bea (diff) | |
download | openttd-1d120c51b8289eaa802b12d965bfa95e57880c0b.tar.xz |
(svn r12193) -Codechange: Rename a magic variable, give it a decent type, and remove a 'goto'.
Diffstat (limited to 'src/ai/default/default.cpp')
-rw-r--r-- | src/ai/default/default.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ai/default/default.cpp b/src/ai/default/default.cpp index 3712a867a..438ec6621 100644 --- a/src/ai/default/default.cpp +++ b/src/ai/default/default.cpp @@ -1902,7 +1902,7 @@ struct AiRailPathFindData { bool flag; }; -static bool AiEnumFollowTrack(TileIndex tile, AiRailPathFindData *a, int track, uint length, byte *state) +static bool AiEnumFollowTrack(TileIndex tile, AiRailPathFindData *a, int track, uint length) { if (a->flag) return true; @@ -2848,7 +2848,7 @@ static bool AiCheckRoadPathBetter(AiRoadFinder *arf, const byte *p) } -static bool AiEnumFollowRoad(TileIndex tile, AiRoadEnum *a, int track, uint length, byte *state) +static bool AiEnumFollowRoad(TileIndex tile, AiRoadEnum *a, int track, uint length) { uint dist = DistanceManhattan(tile, a->dest); |