summaryrefslogtreecommitdiff
path: root/src/ai/default
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-02-20 15:13:42 +0000
committerfrosch <frosch@openttd.org>2008-02-20 15:13:42 +0000
commit1d120c51b8289eaa802b12d965bfa95e57880c0b (patch)
tree4c5862dde2fdfc0058bc9a2999d4402a2334b88c /src/ai/default
parent44a829336415e0bdb19a668d02aa022355047bea (diff)
downloadopenttd-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')
-rw-r--r--src/ai/default/default.cpp4
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);