From 18a93cca3d4c590949015ff56e34d8906c60199a Mon Sep 17 00:00:00 2001 From: celestar Date: Wed, 20 Jul 2005 22:02:58 +0000 Subject: (svn r2657) -Codechange: The available railtypes per player are now a bitmask, so that railtypes do not be in ascending order of appearance. Allows easier implementation or more railtypes --- ai_old.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ai_old.c') diff --git a/ai_old.c b/ai_old.c index f6cd06bed..70b4103c9 100644 --- a/ai_old.c +++ b/ai_old.c @@ -1075,7 +1075,7 @@ static void AiWantPassengerRoute(Player *p) static void AiWantTrainRoute(Player *p) { uint16 r; - p->ai.railtype_to_use = p->max_railtype - 1; + p->ai.railtype_to_use = GetBestRailtype(p); r = (uint16)Random(); if (r > 0xD000) { -- cgit v1.2.3-54-g00ecf