mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-08 07:21:53 +00:00
(svn r6043) -Codechange: use wrapper if they are available
This commit is contained in:
parent
9282b29fbc
commit
d917156820
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user