changeset 4342:49e5e99fd7c3 draft

(svn r6043) -Codechange: use wrapper if they are available
author truelight <truelight@openttd.org>
date Tue, 22 Aug 2006 12:15:51 +0000
parents adf5504f6411
children 0c4372b877dd
files ai/default/default.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ai/default/default.c
+++ b/ai/default/default.c
@@ -1408,7 +1408,7 @@
 		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;