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
commitf5929d413b030d4b739ae16604e13598155271d2 (patch)
tree4c5862dde2fdfc0058bc9a2999d4402a2334b88c /src/ai/default
parentca461540689131714dca1cc4cd4e519e8a5d485f (diff)
downloadopenttd-f5929d413b030d4b739ae16604e13598155271d2.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);