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