mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-08 15:30:00 +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();
|
t = AiFindRandomTown();
|
||||||
if (t != NULL) {
|
if (t != NULL) {
|
||||||
// Find a random oil rig industry
|
// Find a random oil rig industry
|
||||||
in = GetIndustry(RandomRange(_total_industries));
|
in = AiFindRandomIndustry();
|
||||||
if (in != NULL && in->type == IT_OIL_RIG) {
|
if (in != NULL && in->type == IT_OIL_RIG) {
|
||||||
if (DistanceManhattan(t->xy, in->xy) < 60)
|
if (DistanceManhattan(t->xy, in->xy) < 60)
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user