summaryrefslogtreecommitdiff
path: root/ai
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-08-22 12:15:51 +0000
committertruelight <truelight@openttd.org>2006-08-22 12:15:51 +0000
commitd917156820e074a5359fe80a3619f8abd2974abd (patch)
tree21319a94248955116bc67dac2378f9b98eb442e8 /ai
parent9282b29fbc216d41d0c283ca3e6b39dbabc3bc21 (diff)
downloadopenttd-d917156820e074a5359fe80a3619f8abd2974abd.tar.xz
(svn r6043) -Codechange: use wrapper if they are available
Diffstat (limited to 'ai')
-rw-r--r--ai/default/default.c2
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;