1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-17 03:29:09 +00:00

(svn r6043) -Codechange: use wrapper if they are available

This commit is contained in:
truelight
2006-08-22 12:15:51 +00:00
parent 9282b29fbc
commit d917156820

View File

@@ -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;