diff options
author | truelight <truelight@openttd.org> | 2006-08-22 12:15:51 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2006-08-22 12:15:51 +0000 |
commit | 447f67ca6f76b4f9b68b9a1ce6cdc9c85ca5db73 (patch) | |
tree | 21319a94248955116bc67dac2378f9b98eb442e8 | |
parent | ff152a89789426e5364d709c71cf06c710a0dcb8 (diff) | |
download | openttd-447f67ca6f76b4f9b68b9a1ce6cdc9c85ca5db73.tar.xz |
(svn r6043) -Codechange: use wrapper if they are available
-rw-r--r-- | ai/default/default.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ai/default/default.c b/ai/default/default.c index 54a550599..ebd964319 100644 --- a/ai/default/default.c +++ b/ai/default/default.c @@ -1408,7 +1408,7 @@ static void AiWantOilRigAircraftRoute(Player *p) t = AiFindRandomTown(); if (t != NULL) { // Find a random oil rig industry - in = GetIndustry(RandomRange(_total_industries)); + in = AiFindRandomIndustry(); if (in != NULL && in->type == IT_OIL_RIG) { if (DistanceManhattan(t->xy, in->xy) < 60) break; |